Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.65 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.65 KB

MPark.Variant

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

release travis appveyor license godbolt wandbox

Test

This directory contains the tests for MPark.Variant.

CMake Variables

  • MPARK_VARIANT_CXX_STANDARD:STRING (default: 14)

    The C++ standard with which to build the tests.

    NOTE: The libc++ std::variant tests are built with -std=c++17.

  • 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 -V