blob: 7337ddd3a8bca6a94c0144f4700f8e6eb7cef780 [file] [log] [blame]
Brian Silverman7c33ab22018-08-04 17:14:51 -07001/*
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
24using namespace boost::unit_test;
25
26template< typename T >
27void func( T t )
28{
29 typedef typename boost::numeric::odeint::unwrap_reference< T >::type type;
30}
31
32BOOST_AUTO_TEST_SUITE( unwrap_reference_test )
33
34BOOST_AUTO_TEST_CASE( test_case )
35{
36 int a;
37 func( std::ref( a ) );
38 func( a );
39}
40
41
42BOOST_AUTO_TEST_SUITE_END()