]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/exception/test/error_info_rv_const_test.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / exception / test / error_info_rv_const_test.cpp
CommitLineData
7c673cae
FG
1//Copyright (c) 2006-2015 Emil Dotchevski and Reverge Studios, Inc.
2
3//Distributed under the Boost Software License, Version 1.0. (See accompanying
4//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
b32b8144 6#include <boost/exception/info.hpp>
7c673cae
FG
7
8#ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
9int
10main()
b32b8144
FG
11 {
12 return 0;
13 }
7c673cae
FG
14#else
15template <class I>
16I const
17rv_const( I i )
b32b8144
FG
18 {
19 return i;
20 }
7c673cae
FG
21template <class E,class I>
22E const &
23add_info( E const & e, I i )
b32b8144
FG
24 {
25 return e << rv_const(i);
26 }
7c673cae
FG
27#include "error_info_test.hpp"
28#endif