int main() { // Make sure it works at function scope BOOST_HANA_RUNTIME_ASSERT(runtime_bool<true>()); BOOST_HANA_RUNTIME_ASSERT_MSG(runtime_bool<true>(), "message"); // Make sure we can reference a local variable auto yes = runtime_bool<true>(); BOOST_HANA_RUNTIME_ASSERT(yes); BOOST_HANA_RUNTIME_ASSERT_MSG(yes, "message"); }
int main() { BOOST_HANA_CONSTANT_ASSERT(constant_bool<true, void>()); BOOST_HANA_CONSTANT_ASSERT(constant_bool<true, void, void>()); BOOST_HANA_CONSTANT_ASSERT(constant_bool<true, void, void, void>()); BOOST_HANA_RUNTIME_ASSERT(runtime_bool<true, void>()); BOOST_HANA_RUNTIME_ASSERT(runtime_bool<true, void, void>()); BOOST_HANA_RUNTIME_ASSERT(runtime_bool<true, void, void, void>()); BOOST_HANA_ASSERT(runtime_bool<true, void>()); BOOST_HANA_ASSERT(runtime_bool<true, void, void>()); BOOST_HANA_ASSERT(runtime_bool<true, void, void, void>()); BOOST_HANA_ASSERT(constant_bool<true, void>()); BOOST_HANA_ASSERT(constant_bool<true, void, void>()); BOOST_HANA_ASSERT(constant_bool<true, void, void, void>()); }