diff --git a/.travis.yml b/.travis.yml index 03400660..218a57d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -320,7 +320,7 @@ install: script: - |- echo "using $TOOLSET : : $COMPILER : -std=$CXXSTD ;" > ~/user-config.jam - - ./b2 libs/multiprecision/test toolset=$TOOLSET + - ./b2 libs/multiprecision/test toolset=$TOOLSET --disable-concepts notifications: email: diff --git a/include/boost/multiprecision/detail/number_base.hpp b/include/boost/multiprecision/detail/number_base.hpp index 9b10dd82..b5d7aadd 100644 --- a/include/boost/multiprecision/detail/number_base.hpp +++ b/include/boost/multiprecision/detail/number_base.hpp @@ -988,6 +988,19 @@ template struct number_category > : public number_category{}; template struct number_category > : public number_category::result_type>{}; +// +// Specializations for types which do not always have numberic_limits specializations: +// +#ifdef BOOST_HAS_INT128 +template <> +struct number_category<__int128> : public mpl::int_ {}; +template <> +struct number_category : public mpl::int_ {}; +#endif +#ifdef BOOST_HAS_FLOAT128 +template <> +struct number_category<__float128> : public mpl::int_ {}; +#endif template struct component_type;