Files

23 lines
827 B
Markdown
Raw Permalink Normal View History

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-05-17 17:39:42 +03:00
See [the documentation](https://www.boost.org/doc/libs/master/libs/variant2/)
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.
The repository is intended to be placed into the `libs/variant2` directory of
a Boost clone or release, but the header `variant.hpp` will also work
2019-05-12 19:02:59 +03:00
[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
2018-10-18 19:55:15 +03:00
[Appveyor](https://ci.appveyor.com/project/pdimov/variant2/).