You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brigand/test/variant_test.cpp

21 lines
554 B
C++

#include <boost/variant.hpp>
#include <brigand/adapted/variant.hpp>
#include <brigand/sequences/list.hpp>
using test_list = brigand::list<int, bool, char>;
static_assert(std::is_same<boost::variant<int, bool, char>, brigand::as_variant<test_list>>::value,
"error in brigand::make_variant");
template <class...>
class custom_list
{
};
using test_list2 = custom_list<int, bool, char>;
static_assert(std::is_same<boost::variant<int, bool, char>, brigand::as_variant<test_list2>>::value,
"error in brigand::make_variant");