]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/test/optional_test_msvc_bug_workaround.cpp
1 // Copyright (C) 2015 Andrzej Krzemienski.
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)
7 // See http://www.boost.org/lib/optional for documentation.
9 // You are welcome to contact the author at:
12 #define BOOST_OPTIONAL_CONFIG_NO_RVALUE_REFERENCES
13 #include "boost/optional/optional.hpp"
19 #include "boost/core/lightweight_test.hpp"
24 operator int () { return 9; }
25 operator boost::optional
<int> () { return 7; }
30 #if (!defined BOOST_NO_CXX11_RVALUE_REFERENCES)
31 boost::optional
<int> v
= Wrapper();
40 return boost::report_errors();