Re:How to Adopt Modern C++17 into Your C++ Code [video]
by w8rbt on Thursday May 10, 2018 @04:14PM
(#17042554)
Good that you can specify -std=c++11 to prevent the bloat. The more recent 14 and 17 standards don't seem as groundbreaking and practical (both at the same time) as 11 was and, as you note, do seem to bring bloat.
[ Parent
| on HN ]
Re:How to Adopt Modern C++17 into Your C++ Code [video]
by dkersten on Thursday May 10, 2018 @04:42PM
(#17042780)
I use C++17 in my toy code (which is for a mixture of fun and learning modern C++, so...) and the main reasons (besides to learn) I use C++17 over C++11 is std::variant and (from C++14) make_unique. C++11 has a lot of compelling stuff but 14 and 17 seem to be relatively minor improvements over 11. It’s a pity they introduce bloat... definitely makes them much less compelling for use cases where it matters.
Nested namespace definitions and structured binding declarations are also nice.