1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/bool.hpp>
8 namespace hana = boost::hana;
14 auto identity(X x) { return x; }
16 auto x = identity(hana::bool_c<true>);
17 static_assert(hana::value(x), "");
25 std::cout << "Good luck in evaluating this at compile-time!";
31 auto x = identity(hana::bool_c<true>);
32 static_assert(hana::value(x), "");