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/eval_if_test.cpp

10 lines
708 B
C++

#include <brigand/functions/eval_if.hpp>
#include <brigand/types/bool.hpp>
static_assert(std::is_same<brigand::eval_if<brigand::true_type, std::enable_if<true, long>, std::enable_if<false>>::type, long>::value, "invalid eval_if result");
static_assert(std::is_same<brigand::eval_if<brigand::false_type, std::enable_if<false>, std::enable_if<true, bool>>::type, bool>::value, "invalid eval_if result");
static_assert(std::is_same<brigand::eval_if_c<true, std::enable_if<true, long>, std::enable_if<false>>::type, long>::value, "invalid eval_if result");
static_assert(std::is_same<brigand::eval_if_c<false, std::enable_if<false>, std::enable_if<true, bool>>::type, bool>::value, "invalid eval_if result");