2017-05-29 16:28:58 +03:00
|
|
|
# variant2
|
2017-06-01 02:48:27 +03:00
|
|
|
|
2019-05-12 19:02:59 +03:00
|
|
|
This repository contains a never-valueless, strong guarantee, C++11/14/17
|
|
|
|
|
implementation of [std::variant](http://en.cppreference.com/w/cpp/utility/variant).
|
2019-09-21 19:12:34 +03:00
|
|
|
See [the documentation](https://www.boost.org/libs/variant2)
|
2019-05-17 17:39:42 +03:00
|
|
|
for more information.
|
2017-06-01 02:48:27 +03:00
|
|
|
|
2018-10-18 19:55:15 +03:00
|
|
|
The code requires [Boost.Mp11](https://github.com/boostorg/mp11) and
|
|
|
|
|
Boost.Config.
|
|
|
|
|
|
2019-09-21 19:12:34 +03:00
|
|
|
The library is part of Boost, starting from release 1.71, but the header
|
|
|
|
|
`variant.hpp` will also work [standalone](https://godbolt.org/z/nVUNKX).
|
2017-06-01 02:48:27 +03:00
|
|
|
|
|
|
|
|
Supported compilers:
|
|
|
|
|
|
2018-10-19 01:24:26 +03:00
|
|
|
* g++ 4.8 or later with `-std=c++11` or above
|
|
|
|
|
* clang++ 3.5 or later with `-std=c++11` or above
|
2019-05-12 19:02:59 +03:00
|
|
|
* Visual Studio 2015, 2017, 2019
|
2017-06-03 14:24:41 +03:00
|
|
|
|
2019-05-17 03:30:40 +03:00
|
|
|
Tested on [Travis](https://travis-ci.org/boostorg/variant2/) and
|
2019-09-21 18:38:55 +03:00
|
|
|
[Appveyor](https://ci.appveyor.com/project/pdimov/variant2-fkab9).
|