From 1305001a58b2dd3a7395cd4baf5b0fbb5cc89961 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 7 May 2018 18:49:53 +0100 Subject: [PATCH] Trivial fix for GCCXML, fixes: https://github.com/boostorg/type_traits/issues/69 --- include/boost/type_traits/detail/common_arithmetic_type.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/type_traits/detail/common_arithmetic_type.hpp b/include/boost/type_traits/detail/common_arithmetic_type.hpp index a7aff03..92c16da 100644 --- a/include/boost/type_traits/detail/common_arithmetic_type.hpp +++ b/include/boost/type_traits/detail/common_arithmetic_type.hpp @@ -206,9 +206,11 @@ private: static bool cond(); + BOOST_STATIC_CONSTANT(const int, selector = sizeof(select(cond() ? T() : U()))); + public: - typedef typename arithmetic_type< sizeof(select( cond()? T(): U() )) >::type type; + typedef typename arithmetic_type::type type; }; } // namespace type_traits_detail