Files
boost_functional/test/identity_result_of_rvalue_test.cpp
2022-01-12 01:46:04 -05:00

32 lines
834 B
C++

/*
Copyright 2022 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <boost/functional/identity.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/utility/result_of.hpp>
int main()
{
BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(int)>::type,
int&&);
BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(const int)>::type,
int&&);
BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(int&&)>::type,
int&&);
BOOST_TEST_TRAIT_SAME(boost::result_of<boost::identity(const int&&)>::type,
const int&&);
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif