]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/compile_fail/conv_fail_01.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / multiprecision / test / compile_fail / conv_fail_01.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright 2012 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)
5
6 #include <boost/multiprecision/cpp_int.hpp>
7
8 using namespace boost::multiprecision;
9
10 void foo(cpp_int i)
11 {
12 }
13
14 int main()
15 {
16 foo(2.3); // conversion from float is explicit
17 }