C++17
std::variant
for C++11/14/17
This directory contains the tests for MPark.Variant.
-
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.
Execute the following commands from the top-level directory:
mkdir build
cd build
cmake -DMPARK_VARIANT_INCLUDE_TESTS="mpark;libc++" ..
cmake --build .
ctest -V