pineapple-src/externals/vcpkg/buildtrees/boost-variant2/src/ost-1.79.0-3093c57029.clean/test/quick.cpp

14 lines
282 B
C++
Raw Normal View History

2022-11-05 15:35:56 +01:00
// Copyright 2019 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/variant2.hpp>
using namespace boost::variant2;
int main()
{
variant<float, int> v( 2 );
return get<1>( v ) == 2? 0: 1;
}