#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 namespace boost { namespace endian { namespace detail { template struct negation: std::integral_constant {}; template struct is_scoped_enum: std::conditional< std::is_enum::value, negation< std::is_convertible >, std::false_type >::type { }; } // namespace detail } // namespace endian } // namespace boost #endif // BOOST_ENDIAN_DETAIL_IS_SCOPED_ENUM_HPP_INCLUDED