returns.cpp 575 B

1234567891011121314151617181920212223
  1. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/metaparse/v1/impl/returns.hpp>
  6. #include <boost/mpl/assert.hpp>
  7. #include <boost/type_traits.hpp>
  8. #include "test_case.hpp"
  9. BOOST_METAPARSE_TEST_CASE(returns)
  10. {
  11. using boost::metaparse::v1::impl::returns;
  12. using boost::is_same;
  13. // test_returns_evaluates_to_its_argument
  14. BOOST_MPL_ASSERT((is_same<int, returns<int>::type>));
  15. }