MCPcopy Create free account
hub / github.com/boostorg/hana / main

Function main

test/assert/constexpr.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16int main() {
17 // Make sure it works at function scope
18 BOOST_HANA_CONSTEXPR_ASSERT(runtime_bool<true>());
19 BOOST_HANA_CONSTEXPR_ASSERT(constexpr_bool<true>());
20 BOOST_HANA_CONSTEXPR_ASSERT_MSG(runtime_bool<true>(), "message");
21 BOOST_HANA_CONSTEXPR_ASSERT_MSG(constexpr_bool<true>(), "message");
22
23 // Make sure we can reference a local variable
24 auto rt_yes = runtime_bool<true>();
25 constexpr auto cx_yes = constexpr_bool<true>();
26 BOOST_HANA_CONSTEXPR_ASSERT(rt_yes);
27 BOOST_HANA_CONSTEXPR_ASSERT(cx_yes);
28 BOOST_HANA_CONSTEXPR_ASSERT_MSG(rt_yes, "message");
29 BOOST_HANA_CONSTEXPR_ASSERT_MSG(cx_yes, "message");
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected