3 ms·
These are all good suggestions, but for me the three nicest features of modern c++ are: - auto - lambdas - all the "inplace" construction stuff (*.
by ur-whale 8y ago
These are all good suggestions, but for me the three nicest features of modern c++ are:
- auto
- lambdas
- all the "inplace" construction stuff (*.emplace_back)
These truly change the language and make it way better.
The day C++ allows trailing commas in argument lists and gets rid of semi-columns, my life will be complete ;)
- jcelerier 8y agoI don't think it's very far for arguments list, considering that you can already do it in some cases : struct foo { float x; float y; }; int main() { std::array<float, 3> x{1,2,3,}; foo f{1,2,}; }
- je42 8y agoand - range based for loop - deduction guides (C++17) (no more make_some_type) - structured bindings (C++17) - optional,variant (C++17)
- ur-whale 8y ago> - range based for loop Oh yeah. How could I not include this in the list <bangs head> I use them all the time.