You are viewing the develop version of this library.
The master and develop pages are shown here to provide access to the newest in-development in-progress documentation. See the "Documentation" link on this page.
Other aspects of the page will reflect the previous official version, or not be available until the next release.
This repository contains a never-valueless, strong guarantee, C++11/14/17 implementation of std::variant. See the documentation for more information.
The library is part of Boost, starting from release 1.71. It depends on Boost.Mp11, Boost.Config, and Boost.Assert.
Supported compilers:
-std=c++11 or above-std=c++11 or aboveTested on Github Actions and Appveyor.
<h1>Boost.Variant2</h1> <p>This repository contains a never-valueless, strong guarantee, C++11/14/17 implementation of <a href="http://en.cppreference.com/w/cpp/utility/variant">std::variant</a>. See <a href="https://www.boost.org/libs/variant2">the documentation</a> for more information.</p> <p>The library is part of Boost, starting from release 1.71. It depends on Boost.Mp11, Boost.Config, and Boost.Assert.</p> <p>Supported compilers:</p> <ul> <li>g++ 4.8 or later with <code>-std=c++11</code> or above</li> <li>clang++ 3.9 or later with <code>-std=c++11</code> or above</li> <li>Visual Studio 2015 or later</li> </ul> <p>Tested on <a href="https://github.com/boostorg/variant2/actions">Github Actions</a> and <a href="https://ci.appveyor.com/project/pdimov/variant2-fkab9">Appveyor</a>.</p>
<h1>Boost.Variant2</h1> <p>This repository contains a never-valueless, strong guarantee, C++11/14/17 implementation of <a href="http://en.cppreference.com/w/cpp/utility/variant">std::variant</a>. See <a href="https://www.boost.org/libs/variant2">the documentation</a> for more information.</p> <p>The library is part of Boost, starting from release 1.71. It depends on Boost.Mp11, Boost.Config, and Boost.Assert.</p> <p>Supported compilers:</p> <ul> <li>g++ 4.8 or later with <code>-std=c++11</code> or above</li> <li>clang++ 3.9 or later with <code>-std=c++11</code> or above</li> <li>Visual Studio 2015 or later</li> </ul> <p>Tested on <a href="https://github.com/boostorg/variant2/actions">Github Actions</a> and <a href="https://ci.appveyor.com/project/pdimov/variant2-fkab9">Appveyor</a>.</p>