]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/git_issue_30.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>
10 E(boost::multiprecision::cpp_rational
const&)
15 void g(boost::multiprecision::cpp_rational
const& r
)
17 std::cout
<< r
<< std::endl
;
22 #if !defined(BOOST_MP_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) && !BOOST_WORKAROUND(BOOST_MSVC, < 1900) && !(defined(__APPLE_CC__) && defined(CI_SUPPRESS_KNOWN_ISSUES))
23 boost::multiprecision::cpp_int r
= 3;
25 E
x1(r
); // triggers explicit conversion operator.