Home

Awesome

boost20.optional

An educational C++20 implementation of Boost.Optional that also is-a C++20 std::optional.

The primary motivation for this implementation is the exploration of these C++20 features:

This implementation of Boost.Optional offers these major features:

So far, MSVC 16.8-pre3 is capable of compiling all module flavours and the assorted examples. Clang trunk and gcc 10 accept the code at least as #include, I couldn't yet figure out how to compile it as modules on Compiler Explorer.

How to use it

All you actually need is in directory optional:

Directory VisualStudio contains a solution and projects to build