Andreas Fertig · @andreasfertig
250 followers · 66 posts · Server mas.to

Check out my post, "A string class that is only instantiable at compile-time", you learn how to have a class that s only instantiable at compile-time.

andreasfertig.blog/2023/01/a-s

#cpp20 #cpp #cpp17 #cplusplus

Last updated 1 year ago

KDAB · @kdab
147 followers · 54 posts · Server techhub.social

KDAB's Jesper Pedersen wanted to show algorithms in his video series Qt Widgets and More. Additionally, he wanted to learn more about template meta programming for his own use.

Result: an algorithm library that can make complex code easier to read💡

kdab.com/introducing-kdalgorit

#cpp #cplusplus #algorithms #cpp14 #cpp17 #cpp20

Last updated 2 years ago

Andreas Fertig · @andreasfertig
220 followers · 20 posts · Server mas.to

In my latest blog post, "push_back vs. emplace_back: When to use what", you learn the difference between these two and a potential pitfall.

bit.ly/3K8hCWG

#cpp #cpp17 #cplusplus

Last updated 2 years ago

Andreas Fertig · @andreasfertig
213 followers · 16 posts · Server mas.to

In my latest blog post, "A string class that is only insatiable at compile-time", you learn how to have a class that can only be instantiated at compile-time.

bit.ly/3Q7FEnb

#cpp20 #cpp #cpp17 #cplusplus

Last updated 2 years ago

Bartlomiej Filipek · @fenbf
3 followers · 1 posts · Server techhub.social

See my new article:
cppstories.com/2022/structured

Have you tried structured bindings from C++17?

#programming #cpp #cpp17

Last updated 2 years ago

Talkless :debian: :kde: · @Talkless
89 followers · 1197 posts · Server fosstodon.org

Looks like "C++20 - The Complete Guide" by Nicolai M. Josuttis is finished (he allowed to buy it while being written).

I haven't bought this book yet, but I got his two books about and move semantics.

He's great educator, I can't recommend more! His videos are also very useful.

Bartłomiej Filipek is also great author if you want to refresh C++ knowledge.

cppstd20.com/

#education #books #programming #cpp #cpp20 #cpp17

Last updated 2 years ago

std::polar · @sehe
101 followers · 469 posts · Server fosstodon.org

I *rarely* ask on

But today was a question worth asking, I think: stackoverflow.com/q/74601619/8 "Order of evaluation in v != std::exchange(v, predecessor(v))"

Any standardese buffs know this off-hand, say for ?

#stackoverflow #cpp #cpp17

Last updated 2 years ago

std::polar · @sehe
79 followers · 323 posts · Server fosstodon.org

std::exchange is underrated episode #756

This time it meets c++17 ranged-for with initializer:

#cpp #cpp17

Last updated 2 years ago

Markus Ewald · @cygon
41 followers · 155 posts · Server mastodon.gamedev.place

A-ha! There was a variant that worked in C++17 (and of course no longer in C++20, but I'm pushing off dealing with C++20 and char8_t string literals to 2030 or so).

#multithreading #cpp17 #cpp #programming

Last updated 3 years ago

Naughtylus :nixos: :plasma: · @Naughtylus
244 followers · 2773 posts · Server fosstodon.org

Okay... Here, I bought you a Optional Types :

std::optional<int> opt = std::nullopt;
return *opt;

#cpp17

Last updated 3 years ago

Gapry · @gapry
38 followers · 186 posts · Server fosstodon.org
Gapry · @gapry
38 followers · 186 posts · Server fosstodon.org
ijliao · @ijliao
298 followers · 6174 posts · Server g0v.social