|
|
|
|
|
by Const-me
2117 days ago
|
|
> learning and using all of C++ is beyond impractical I agree in general, but still, some of the newly introduced features are actually awesome. Here’s ones I’m using almost every day. C++/11: initializer lists, range-based for loops, strongly-typed scoped enums, raw and UTF8 string literals, thread_local, thread synchronization classes including atomics, alignas C++/14: binary literals C++/17: if constexpr, std::string_view, better static_assert And in C++/20, pretty sure I gonna use std::span and std::bit_cast. In C++ we don’t pay for features we don’t use. I’m totally fine with other people getting the features they want (despite finding them unreadable and overcomplicated), I simply don’t use the stuff I don’t like. |
|