is_variable_precision.hpp 851 B

12345678910111213141516171819202122232425
  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. #ifndef BOOST_MP_IS_VARIABLE_PRECISION_HPP
  6. #define BOOST_MP_IS_VARIABLE_PRECISION_HPP
  7. #include <boost/multiprecision/detail/number_base.hpp>
  8. namespace boost { namespace multiprecision { namespace detail {
  9. template <class Backend>
  10. struct is_variable_precision : public std::integral_constant<bool, false>
  11. {};
  12. template <class Backend, expression_template_option ExpressionTemplates>
  13. struct is_variable_precision<number<Backend, ExpressionTemplates> > : public is_variable_precision<Backend>
  14. {};
  15. }
  16. }
  17. } // namespace boost::multiprecision::detail
  18. #endif // BOOST_MP_IS_BACKEND_HPP