]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/ntl_concept_check.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / ntl_concept_check.cpp
1 // Copyright John Maddock 2007-8.
2 // Copyright Paul A. Bristow 2009, 2011
3
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 //
9 // This tests two things: that boost::math::ntl::RR meets our
10 // conceptual requirements, and that we can instantiate
11 // all our distributions and special functions on this type.
12 //
13
14 #ifdef _MSC_VER
15 # pragma warning (disable : 4100) // unreferenced formal parameter
16 #endif
17
18
19
20 #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
21
22 #include <boost/math/bindings/rr.hpp>
23 #include <boost/math/concepts/real_type_concept.hpp>
24 #include "compile_test/instantiate.hpp"
25
26 void foo()
27 {
28 instantiate(boost::math::ntl::RR());
29 }
30
31 int main()
32 {
33 BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<boost::math::ntl::RR>));
34 }
35