c++boostc++17variantboost-variant

What are the differences between std::variant and boost::variant?


In an answer to this SO question:

What is the equivalent of boost::variant in the C++ standard library?

it is mentioned that boost::variant and std::variant differ somewhat.

(the motivation is using boost::variant in pre-C++17 code)


Solution