1 /////////////////////////////////////////////////////////////////////////////// 2 // Copyright 2018 John Maddock. Distributed under the Boost 3 // Software License, Version 1.0. (See accompanying file 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 #ifndef BOOST_MP_IS_VARIABLE_PRECISION_HPP 7 #define BOOST_MP_IS_VARIABLE_PRECISION_HPP 8 9 #include <boost/type_traits/integral_constant.hpp> 10 #include <boost/multiprecision/detail/number_base.hpp> 11 12 namespace boost { namespace multiprecision { namespace detail { 13 14 template <class Backend> 15 struct is_variable_precision : public false_type 16 {}; 17 18 template <class Backend, expression_template_option ExpressionTemplates> 19 struct is_variable_precision<number<Backend, ExpressionTemplates> > : public is_variable_precision<Backend> 20 {}; 21 22 } 23 } 24 } // namespace boost::multiprecision::detail 25 26 #endif // BOOST_MP_IS_BACKEND_HPP 27