ntl_concept_check.cpp 892 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright John Maddock 2007-8.
  2. // Copyright Paul A. Bristow 2009, 2011
  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. // This tests two things: that boost::math::ntl::RR meets our
  8. // conceptual requirements, and that we can instantiate
  9. // all our distributions and special functions on this type.
  10. //
  11. #ifdef _MSC_VER
  12. # pragma warning (disable : 4100) // unreferenced formal parameter
  13. #endif
  14. #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
  15. #include <boost/math/bindings/rr.hpp>
  16. #include <boost/math/concepts/real_type_concept.hpp>
  17. #include "compile_test/instantiate.hpp"
  18. void foo()
  19. {
  20. instantiate(boost::math::ntl::RR());
  21. }
  22. int main()
  23. {
  24. BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::math::ntl::RR>));
  25. }