unwrap_reference.cpp 820 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. [auto_generated]
  3. libs/numeric/odeint/test/unwrap_reference.cpp
  4. [begin_description]
  5. tba.
  6. [end_description]
  7. Copyright 2009-2012 Karsten Ahnert
  8. Copyright 2009-2012 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #define BOOST_TEST_MODULE odeint_unwrap_reference
  14. #include <boost/numeric/odeint/util/unwrap_reference.hpp>
  15. #include <boost/test/unit_test.hpp>
  16. using namespace boost::unit_test;
  17. template< typename T >
  18. void func( T t )
  19. {
  20. typedef typename boost::numeric::odeint::unwrap_reference< T >::type type;
  21. }
  22. BOOST_AUTO_TEST_SUITE( unwrap_reference_test )
  23. BOOST_AUTO_TEST_CASE( test_case )
  24. {
  25. int a;
  26. func( std::ref( a ) );
  27. func( a );
  28. }
  29. BOOST_AUTO_TEST_SUITE_END()