// Copyright 2019 Peter Dimov. // // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt #include using namespace boost::variant2; int main() { variant v( 2 ); return get<1>( v ) == 2; }