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