• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# variant2
2
3This repository contains a never-valueless, strong guarantee, C++11/14/17
4implementation of [std::variant](http://en.cppreference.com/w/cpp/utility/variant).
5See [the documentation](https://www.boost.org/libs/variant2)
6for more information.
7
8The code requires [Boost.Mp11](https://github.com/boostorg/mp11) and
9Boost.Config.
10
11The library is part of Boost, starting from release 1.71, but the header
12`variant.hpp` will also work [standalone](https://godbolt.org/z/nVUNKX).
13
14Supported compilers:
15
16* g++ 4.8 or later with `-std=c++11` or above
17* clang++ 3.5 or later with `-std=c++11` or above
18* Visual Studio 2015, 2017, 2019
19
20Tested on [Travis](https://travis-ci.org/boostorg/variant2/) and
21[Appveyor](https://ci.appveyor.com/project/pdimov/variant2-fkab9).
22