]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/test/optional_test_fail3a.cpp
bump version to 19.2.0-pve1
[ceph.git] / ceph / src / boost / libs / optional / test / optional_test_fail3a.cpp
1 // Copyright (C) 2003, Fernando Luis Cacciola Carballal.
2 //
3 // Use, modification, and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/lib/optional for documentation.
8 //
9 // You are welcome to contact the author at:
10 // fernando_cacciola@hotmail.com
11 //
12 #include<string>
13
14 #include "boost/optional.hpp"
15
16 //
17 // THIS TEST SHOULD FAIL TO COMPILE
18 //
19 void test_no_unsupported_conversion()
20 {
21 boost::optional<int> opt1(1) ;
22 boost::optional< std::string > opt2( opt1 ) ; // Cannot convert from "int" to "std::string"
23 }
24
25