From ef2d00be2af8ed094d9113a0379fa0e64f082188 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 8 Jun 2015 09:18:00 +0100 Subject: [PATCH] Use boost::int128_type to avoid GCC warnings. Without this the type_traits tests fail as they use -Werror. --- .../type_traits/detail/common_arithmetic_type.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/type_traits/detail/common_arithmetic_type.hpp b/include/boost/type_traits/detail/common_arithmetic_type.hpp index 9e9a4cb..7211002 100644 --- a/include/boost/type_traits/detail/common_arithmetic_type.hpp +++ b/include/boost/type_traits/detail/common_arithmetic_type.hpp @@ -42,7 +42,7 @@ template<> struct arithmetic_type<3> }; // There are five standard signed integer types: -// “signed char”, “short int”, “int”, “long int”, and “long long int”. +// “signed char”, “short int”, “int”, “long int”, and “long long int”. template<> struct arithmetic_type<4> { @@ -75,8 +75,8 @@ template<> struct arithmetic_type<8> }; // For each of the standard signed integer types, there exists a corresponding -// (but different) standard unsigned integer type: “unsigned char”, “unsigned short int”, -// “unsigned int”, “unsigned long int”, and “unsigned long long int” +// (but different) standard unsigned integer type: “unsigned char”, “unsigned short int”, +// “unsigned int”, “unsigned long int”, and “unsigned long long int” template<> struct arithmetic_type<9> { @@ -152,13 +152,13 @@ template<> struct arithmetic_type<18> template<> struct arithmetic_type<19> { - typedef __int128 type; + typedef boost::int128_type type; typedef char (&result_type) [19]; }; template<> struct arithmetic_type<20> { - typedef unsigned __int128 type; + typedef boost::uint128_type type; typedef char (&result_type) [20]; };