#ifndef BOOST_ENDIAN_DETAIL_IS_SCOPED_ENUM_HPP_INCLUDED #define BOOST_ENDIAN_DETAIL_IS_SCOPED_ENUM_HPP_INCLUDED // Copyright 2020 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include namespace boost { namespace endian { namespace detail { template struct negation: boost::integral_constant {}; template struct is_scoped_enum: boost::conditional< boost::is_enum::value, negation< boost::is_convertible >, boost::false_type >::type { }; } // namespace detail } // namespace endian } // namespace boost #endif // BOOST_ENDIAN_DETAIL_IS_SCOPED_ENUM_HPP_INCLUDED