]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/functional/test/identity_result_of_rvalue_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / functional / test / identity_result_of_rvalue_test.cpp
CommitLineData
1e59de90
TL
1/*
2Copyright 2022 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under the Boost Software License, Version 1.0.
6(http://www.boost.org/LICENSE_1_0.txt)
7*/
8#include <boost/config.hpp>
9#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
10#include <boost/functional/identity.hpp>
11#include <boost/core/lightweight_test_trait.hpp>
12#include <boost/utility/result_of.hpp>
13
14int main()
15{
16 BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(int)>::type,
17 int&&);
18 BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(const int)>::type,
19 int&&);
20 BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(int&&)>::type,
21 int&&);
22 BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(const int&&)>::type,
23 const int&&);
24 return boost::report_errors();
25}
26#else
27int main()
28{
29 return 0;
30}
31#endif