]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/test/optional_test_tc_base.cpp
1 // Copyright (C) 2014 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 #include "boost/optional/optional.hpp"
18 #include "boost/core/lightweight_test.hpp"
20 #if defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
30 struct NotDefaultConstructible
32 NotDefaultConstructible() = delete;
37 boost::optional
<NotDefaultConstructible
> o
;
39 BOOST_TEST(boost::none
== o
);
52 template<class... Args
>
54 : t_(std::forward
<Args
>(args
)...)
59 void test_value_init()
65 boost::optional
<W
<S
&> > o
;
66 BOOST_TEST(boost::none
== o
);
73 return boost::report_errors();