2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00
Files
math/test/table_type.hpp
Paul A. Bristow 69ba66929d Rebuilt after edits to quiet nags.
[SVN r79834]
2012-08-01 16:32:48 +00:00

43 lines
850 B
C++

// Copyright John Maddock 2012.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_MATH_TEST_TABLE_TYPE_HPP
#define BOOST_MATH_TEST_TABLE_TYPE_HPP
template <class T>
struct table_type
{
typedef T type;
};
namespace boost{ namespace math{ namespace concepts{
class real_concept;
}}}
template <>
struct table_type<boost::math::concepts::real_concept>
{
typedef long double type;
};
namespace boost{ namespace multiprecision{
template <class Backend, bool ExpressionTemplates>
class mp_number;
}}
template <class Backend, bool ExpressionTemplates>
struct table_type<boost::multiprecision::mp_number<Backend, ExpressionTemplates> >
{
typedef const char* type;
};
#endif