C++ 2017 Best Official
Allows declaring a variable scoped to the statement.
g++ -std=c++17 program.cpp clang++ -std=c++17 program.cpp cl /std:c++17 program.cpp # MSVC C++17 is often described as a "quality-of-life" release because it addressed many everyday pain points without introducing radical new paradigms (unlike C++11 or C++20). It made C++ more approachable and efficient, and most codebases quickly adopted its features. c++ 2017
template<typename... Args> auto sum(Args... args) return (args + ...); // right fold Allows declaring a variable scoped to the statement
Compile-time conditional compilation inside templates, discarding non-taken branches entirely. c++ 2017
Type-safe union.
print("temporary"); // no allocation Most STL algorithms gained execution policy overloads: seq , par , par_unseq .