201
202
submitted 2 years ago by [M] to c/cpp@programming.dev
203
204
205
 
 

The last in a series of blog posts on a C++ technique that I've put to use for a numerical library. Was a fun little exercise, sharing here.

206
Atomics And Concurrency (redixhumayun.github.io)
submitted 2 years ago by [M] to c/cpp@programming.dev
207
208
submitted 2 years ago by [M] to c/cpp@programming.dev
209
210
submitted 2 years ago by [M] to c/cpp@programming.dev
211
212
213
 
 

This talk assumes no prior knowledge of functional programming.

214
 
 

I did a code that uses custom literals to allow indexing arrays with ordinals (1st, 2nd, 3rd), all at compile time. Additionally _st works only with 1, _nd only with 2, _rd only with 3. Zero and negative numbers are also not supported and fail compilation.

https://github.com/serpent7776/bits/blob/master/th.cpp/th.cpp

215
 
 

The spaceship operator took me longer than it should (my mistake). A note to my future self, and maybe of use to you.

216
217
 
 

From last year's CppCon, posted just 4 hours ago. A nice discussion about CTAD, how it works, deduction guides and some pitfalls.

218
 
 

Another great "back to basics", by the great O'Dwyer. Definitely a must-watch for those still struggling with C++ smart pointers.

219
 
 

The intersection of forwarding references and overload resolution has been bugging me, and I've been caught out a few times on the wrong overload, so here's an idea.

220
 
 

Best resource I've seen out there for template basics. It even briefly mentions variadic templates, concepts that are easy to understand, auto in function parameters (a.k.a. abbreviated function templates) and how to find out what type is chosen when you do class template automatic deduction (CTAD).

I feel like this is an absolute must-watch if you want to know about modern template practices.

221
 
 

C++03 does feel ancient now, but the sizeof trick to simulate what you could do today with std::void_t and decltype (or simply concepts since C++20) definitely blew me away!

222
 
 

The talk goes over compile-time parsing using Boost.MetaParse, Lexy, CTRE, CTPG and Macro Rules, and how it fits in with reflection.

223
submitted 2 years ago* (last edited 9 months ago) by to c/cpp@programming.dev
 
 

I quite liked this talk. Especially where Vincent talks about aggregate initialization, invariants and avoiding invalid values.

224
225
view more: ‹ prev next ›