Herb Sutter is reviewing his Guru of the Week series from item one, in the light of features in C++11 and C++14. This will form the backbone of a new issue of Exceptional C++.
Tag Archives: C++14
More details on the ISO C++ blog about runtime-sized arrays in C++14.
N3639 proposes to add local runtime-sized arrays with automatic storage duration to C++, for example:
void f(std::size_t n)
for (std::size_t i = 0; i < n; ++i)
a[i] = 2*i;
Traditionally, the array bound “n” had to be a constant expression.
Herb Sutter has posted his trip report from the ISO C++ Spring 2013 meeting in Bristol.
The post includes details on features to be included in C++14, including:
std::make_unique– never use “new” again
- Generic lambdas – allow auto for type name in lambdas
- Dynamic arrays – stack-based arrays can take size parameter at runtime
std::optional– for variables that are ‘not set’ (like F# option)
- Concepts lite – constraints for templates