1// Copyright 2019 Peter Dimov.
2// Distributed under the Boost Software License, Version 1.0.
3// https://www.boost.org/LICENSE_1_0.txt
4
5#include <boost/variant2.hpp>
6
7using namespace boost::variant2;
8
9int main()
10{
11 variant<float, int> v( 2 );
12 return get<1>( v ) == 2? 0: 1;
13}
14

source code of boost/libs/variant2/test/quick.cpp