3 Defines `boost::hana::default_` and `boost::hana::is_default`.
5 @copyright Louis Dionne 2013-2017
6 Distributed under the Boost Software License, Version 1.0.
7 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_HANA_CORE_DEFAULT_HPP
11 #define BOOST_HANA_CORE_DEFAULT_HPP
13 #include <boost/hana/fwd/core/default.hpp>
15 #include <boost/hana/config.hpp>
17 #include <type_traits>
20 namespace boost { namespace hana {
21 template <typename Method, typename>
22 struct is_default : std::false_type { };
24 template <typename Method>
25 struct is_default<Method, decltype((void)
26 static_cast<default_>(*(Method*)0)
30 }} // end namespace boost::hana
32 #endif // !BOOST_HANA_CORE_DEFAULT_HPP