]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/bug11922.cpp
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(DISABLE_TEST)
25 Int1(const mp_int
& ) {}
32 Int2(const mp_int
& ) {}
33 Int2(const Int2
& ) = delete;
38 using namespace boost::multiprecision
;
44 std::shared_ptr
<Int1
> p1
= std::make_shared
<Int1
>(i
+ 10);
45 std::shared_ptr
<Int2
> p2
= std::make_shared
<Int2
>(i
+ 10);