3 ms·
The major user visible features of C++14 were polymorphic lambdas, generalized lambda capture, proper constexpr, member initializers and return type deduction.
by gpderetta 10y ago
The major user visible features of C++14 were polymorphic lambdas, generalized lambda capture, proper constexpr, member initializers and return type deduction. I use most of these everyday.
For C++17 the biggest features are structured binding, which is the first step toward pattern matching, and deduction of template parameters for class types.
Other features like fold expressions are realy meant for library writers.
The standard library did get variant and optional whixh arw pretty cool.
- ot 10y agoThe lack of generalized lambda capture was one of the biggest idiosyncrasies of C++11, given its focus on move semantics.
- gpderetta 10y agoEven in with the last draft it still not possible to easily move-capture a variadic parameter pack; it is a fairly esoteric feature and there are workarounds, but it is still annoying.
- 72deluxe 10y agoOh how I envy your use of C++14 every day. Here we are still trying to migrate off VC2008 and C++2003. Variant and optional would be really useful if only I could use them. One day, one day... (ps doesn't stop me writing using these new features at home on other projects)