MPark.Variant

January 15, 2019 ยท View on GitHub

C++17 std::variant for C++11/14/17

release header travis appveyor license godbolt wandbox

Test

This directory contains the tests for MPark.Variant.

CMake Variables

  • MPARK_VARIANT_EXCEPTIONS:BOOL (default: ON)

    Build the tests with exceptions support.

Build / Run

Execute the following commands from the top-level directory:

mkdir build
cd build
cmake -DMPARK_VARIANT_INCLUDE_TESTS="mpark;libc++" ..
cmake --build .
ctest --output-on-failure