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: akrzemi1@gmail.com
12 #include "boost/optional/optional.hpp"
18 #include "boost/core/addressof.hpp"
19 #include "boost/core/enable_if.hpp"
20 #include "boost/core/lightweight_test.hpp"
21 #include "testable_classes.hpp"
22 #include "optional_ref_assign_test_defs.hpp"
26 void test_all_const_cases()
28 test_converting_assignment
<T
, T
>();
29 test_converting_assignment
<const T
, const T
>();
30 test_converting_assignment
<T
, const T
>();
35 test_all_const_cases
<ScopeGuard
>();
36 test_all_const_cases
<Abstract
>();
38 return boost::report_errors();