#ifndef BOOST_DESCRIBE_ENUMERATORS_HPP_INCLUDED #define BOOST_DESCRIBE_ENUMERATORS_HPP_INCLUDED // Copyright 2020, 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #if defined(BOOST_DESCRIBE_CXX11) #include namespace boost { namespace describe { // describe_enumerators template using describe_enumerators = decltype( boost_enum_descriptor_fn( static_cast(0) ) ); // has_describe_enumerators namespace detail { template struct has_describe_enumerators: std::false_type { }; template struct has_describe_enumerators>>: std::true_type { }; } // namespace detail template using has_describe_enumerators = detail::has_describe_enumerators; } // namespace describe } // namespace boost #endif // defined(BOOST_DESCRIBE_CXX11) #endif // #ifndef BOOST_DESCRIBE_ENUMERATORS_HPP_INCLUDED