boost::optional, a C++ alternative to nullable pointers.

John Ralls jralls at ceridwen.us
Sat Oct 1 05:00:06 EDT 2016


This article [1] is really an argument that the standard committee screwed up and should have allowed std::optional<foo&> in C++-17, as boost::optional does. For our purposes it's an excellent explanation of why using boost::optional<foo&> can help us write safer and more easily understood code when we use it to replace foo*.

Regards,
John Ralls

[1] http://tristanbrindle.com/posts/optional-references




More information about the gnucash-devel mailing list