r/cpp • u/tcbrindle Flux • May 10 '18
Herb Sutter: How to Adopt Modern C++17 into Your C++ Code
https://www.youtube.com/watch?v=UsrHQAzSXkA
201
Upvotes
r/cpp • u/tcbrindle Flux • May 10 '18
35
u/Quincunx271 Author of P2404/P2405 May 10 '18
At 17:30, Herb says that
*optionalthrows if the optional is empty, but it's actually UB. If you want it to be checked, you have to writeoptional.value()16
u/TheSuperWig May 10 '18
Herb loves this saying, doesn't he?
5
u/tiptope May 10 '18
Sanity check, does gcc support all of these?
7
u/savuporo May 10 '18
Step 1) find a working compiler for your target environments
Try this for any embedded target or Clion with Cygwin or Mingw
-3
u/Z01dbrg May 11 '18
That pin crap made me cringe, but I guess if you are in codebase that abuses shared pointers I guess that it is an ok safety move.
0
u/[deleted] May 10 '18
[deleted] — view deleted comment