What made i = i++ + 1; legal in C++17?
Before you start yelling undefined behaviour, this is explicitly listed in N4659 (C++17) i = i++ + 1; // the value of i … Read more
Before you start yelling undefined behaviour, this is explicitly listed in N4659 (C++17) i = i++ + 1; // the value of i … Read more
string_view was a proposed feature within the C++ Library Fundamentals TS(N3921) added to C++17 As far as i understand it is a type … Read more
C++17 introduced a new lock class called std::scoped_lock. Judging from the documentation it looks similar to the already existing std::lock_guard class. What’s the … Read more
std::string_view has made it to C++17 and it is widely recommended to use it instead of const std::string&. One of the reasons is … Read more
P0137 introduces the function template std::launder and makes many, many changes to the standard in the sections concerning unions, lifetime, and pointers. What … Read more
Contrary to all other similar questions, this question is about using the new C++ features. 2008 c Is there a simple way to … Read more
This FAQ is about Aggregates and PODs and covers the following material: What are Aggregates? What are PODs (Plain Old Data)? How are … Read more
This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. … Read more