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

Function constexpr_context

test/assert/constant.cpp:29–33  ·  view source on GitHub ↗

Make sure it works in a constexpr context

Source from the content-addressed store, hash-verified

27
28// Make sure it works in a constexpr context
29constexpr bool constexpr_context() {
30 BOOST_HANA_CONSTANT_ASSERT(constexpr_constant_bool<true>());
31 BOOST_HANA_CONSTANT_ASSERT_MSG(constexpr_constant_bool<true>(), "message");
32 return true;
33}
34static_assert(constexpr_context(), "");
35
36

Callers 1

constant.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected