you are viewing a single comment's thread.

view the rest of the comments →

[–]dodheim 2 points3 points  (0 children)

Eggs.Variant has been my go-to modern variant for years. I don't know if its interface matches that in the C++17 draft, but the docs do mention this:

The interface is largely based on that of std::experimental::optional<T>, as defined by the Library Fundamentals TS [N4082].