1 2 // Copyright John Maddock 2007-8. 3 // Use, modification and distribution are subject to the 4 // Boost Software License, Version 1.0. (See accompanying file 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7 // 8 // This tests two things: that mpfr::mpreal meets our 9 // conceptual requirements, and that we can instantiate 10 // all our distributions and special functions on this type. 11 // 12 #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false 13 #define TEST_MPFR 14 15 #include <boost/math/bindings/mpreal.hpp> 16 #include <boost/math/concepts/real_type_concept.hpp> 17 #include "compile_test/instantiate.hpp" 18 #include <boost/static_assert.hpp> 19 20 //BOOST_STATIC_ASSERT((boost::is_same<mpfr::mpreal, boost::math::tools::promote_args<mpfr::mpreal>::type >::value)); 21 foo()22void foo() 23 { 24 instantiate(mpfr::mpreal()); 25 } 26 main()27int main() 28 { 29 BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<mpfr::mpreal>)); 30 return 0; 31 } 32 33 34