1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright 2016 John Maddock. Distributed under the Boost
3 // Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/multiprecision/cpp_int.hpp>
9 #if defined(__apple_build_version__) && (__clang_major__ < 9)
11 // Apples clang fails with:
12 // error: no matching function for call to '__implicit_conversion_to'
13 // Which is nothing to do with us really...
18 typedef boost::multiprecision::cpp_int mp_int;
20 #if !defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) && !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) && !defined(DISABLE_TEST)
25 Int1(const mp_int& i) {}
26 Int1(const Int1& i) {}
32 Int2(const mp_int& i) {}
33 Int2(const Int2& i) = delete;
38 using namespace boost::multiprecision;
44 #ifndef BOOST_NO_CXX11_SMART_PTR
46 std::shared_ptr<Int1> p1 = std::make_shared<Int1>(i + 10);
47 std::shared_ptr<Int2> p2 = std::make_shared<Int2>(i + 10);