]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | // Copyright John Maddock 2013. | |
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 multiprecision::number 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_GROUP_4 | |
14 | #ifdef _MSC_VER | |
15 | # pragma warning(disable:4800) | |
16 | # pragma warning(disable:4512) | |
17 | # pragma warning(disable:4127) | |
18 | # pragma warning(disable:4512) | |
19 | # pragma warning(disable:4503) // decorated name length exceeded, name was truncated | |
20 | #endif | |
21 | ||
22 | #include <boost/multiprecision/cpp_dec_float.hpp> | |
23 | #include "compile_test/instantiate.hpp" | |
24 | ||
25 | using namespace boost::multiprecision; | |
26 | ||
27 | typedef number<cpp_dec_float<50>, et_on> test_type; | |
28 | ||
29 | #if !(defined(CI_SUPPRESS_KNOWN_ISSUES) && defined(BOOST_GCC)) | |
30 | ||
31 | void foo() | |
32 | { | |
33 | instantiate(test_type()); | |
34 | } | |
35 | ||
36 | #endif | |
37 | ||
38 | int main() | |
39 | { | |
40 | //BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<test_type>)); | |
41 | } | |
42 | ||
43 |