]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/math/test/multiprc_concept_check_3.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / math / test / multiprc_concept_check_3.cpp
CommitLineData
7c673cae
FG
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
15#ifdef _MSC_VER
16# pragma warning(disable:4800)
17# pragma warning(disable:4512)
18# pragma warning(disable:4127)
19# pragma warning(disable:4512)
20# pragma warning(disable:4503) // decorated name length exceeded, name was truncated
21#endif
22
23#include <boost/multiprecision/cpp_dec_float.hpp>
24#include <boost/math/concepts/real_type_concept.hpp>
25#include "compile_test/instantiate.hpp"
26
27using namespace boost::multiprecision;
28
29typedef number<cpp_dec_float<50>, et_on> test_type;
30
b32b8144
FG
31#if !(defined(CI_SUPPRESS_KNOWN_ISSUES) && defined(BOOST_GCC))
32
7c673cae
FG
33void foo()
34{
35 instantiate(test_type());
36}
37
b32b8144
FG
38#endif
39
7c673cae
FG
40int main()
41{
42 //BOOST_CONCEPT_ASSERT((boost::math::concepts::RealTypeConcept<test_type>));
43}
44
45