// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include namespace hana = boost::hana; namespace mpl = boost::mpl; //! [front] #include // bridge header using Vector = mpl::vector; static_assert(hana::front(Vector{}) == hana::type_c, ""); //! [front] namespace _ns0 { //! [size] using Size = mpl::size::type; static_assert(hana::equal(Size{}, hana::int_c<3>), ""); // breaks! //! [size] } //! [size-fixed] #include using Size = mpl::size::type; static_assert(hana::equal(Size{}, hana::int_c<3>), ""); //! [size-fixed] int main() { }