]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | /* |
2 | Copyright 2022 Glen Joseph Fernandes | |
3 | (glenjofe@gmail.com) | |
4 | ||
5 | Distributed 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 | ||
14 | int 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 | |
27 | int main() | |
28 | { | |
29 | return 0; | |
30 | } | |
31 | #endif |