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