From 39660c2421cdfce5d6b92d16055843b45a02453e Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 13 Aug 2015 13:22:32 +0100 Subject: [PATCH] Add __float128 specialization for is_floating_point. --- include/boost/type_traits/is_floating_point.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/type_traits/is_floating_point.hpp b/include/boost/type_traits/is_floating_point.hpp index 5d48d74..bc91814 100755 --- a/include/boost/type_traits/is_floating_point.hpp +++ b/include/boost/type_traits/is_floating_point.hpp @@ -20,6 +20,10 @@ namespace boost { template<> struct is_floating_point : public true_type{}; template<> struct is_floating_point : public true_type{}; template<> struct is_floating_point : public true_type{}; + + #if defined(_GLIBCXX_USE_FLOAT128) && defined(BOOST_GCC) && !defined(__STRICT_ANSI__) + template<> struct is_floating_point<__float128> : public true_type{}; + #endif } // namespace boost