]>
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)
7 #include <boost/multiprecision/cpp_int.hpp>
10 typedef boost::multiprecision::cpp_int mp_int
;
12 #if !defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) && !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
16 Int1(const mp_int
& i
) {}
17 Int1(const Int1
& i
) {}
22 Int2(const mp_int
& i
) {}
23 Int2(const Int2
& i
) = delete;
29 using namespace boost::multiprecision
;
35 #ifndef BOOST_NO_CXX11_SMART_PTR
37 std::shared_ptr
<Int1
> p1
= std::make_shared
<Int1
>(i
+ 10);
38 std::shared_ptr
<Int2
> p2
= std::make_shared
<Int2
>(i
+ 10);
47 int main() { return 0; }