/////////////////////////////////////////////////////////////// // Copyright 2012 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt #ifndef BOOST_MP_STD_INTEGER_TRAITS_HPP #define BOOST_MP_STD_INTEGER_TRAITS_HPP #include namespace boost { namespace multiprecision { namespace detail { template struct is_signed : public std::is_signed {}; template struct is_unsigned : public std::is_unsigned {}; template struct is_integral : public std::is_integral {}; template struct is_arithmetic : public std::is_arithmetic {}; template struct make_unsigned : public std::make_unsigned {}; template struct make_signed : public std::make_signed {}; #ifdef BOOST_HAS_INT128 template <> struct is_signed<__int128> : public std::integral_constant {}; template <> struct is_signed : public std::integral_constant {}; template <> struct is_unsigned<__int128> : public std::integral_constant {}; template <> struct is_unsigned : public std::integral_constant {}; template <> struct is_integral<__int128> : public std::integral_constant {}; template <> struct is_integral : public std::integral_constant {}; template <> struct is_arithmetic<__int128> : public std::integral_constant {}; template <> struct is_arithmetic : public std::integral_constant {}; template <> struct make_unsigned<__int128> { using type = unsigned __int128; }; template <> struct make_unsigned { using type = unsigned __int128; }; template <> struct make_signed<__int128> { using type = __int128; }; template <> struct make_signed { using type = __int128; }; #endif }}} // namespace boost::multiprecision::detail #endif