]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/test/optional_test_empty_braces.cpp
1 // Copyright (C) 2016 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 //#ifndef BOOST_OPTIONAL_NO_CONVERTING_ASSIGNMENT
21 //#ifndef BOOST_OPTIONAL_NO_CONVERTING_COPY_CTOR
23 using boost::optional
;
27 explicit Value(int) {}
30 #ifndef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
32 void test_brace_init()
39 void test_brace_assign()
49 #ifndef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
50 test_brace_init
<int>();
51 test_brace_init
<Value
>();
52 test_brace_assign
<int>();
53 test_brace_assign
<Value
>();
56 return boost::report_errors();