News for hackers. Stuff that matters.
Re:What's new in C++17, with lots of examples by jnwatson on Monday March 06, 2017 @03:28PM (#13805790)
I've used boost::optional for a long time. It is long overdue in the standard. NULL should almost never be a valid value. It is also quite useful to enable safe lazy initialization without heap allocation.

std::variant is just a discriminated union. That's useful for lots of things.

C++11 is old school at this point. Other than for legacy reasons, no one should be using the older stuff.

There are no comments on this comment yet.