Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / numeric / odeint / test / unwrap_boost_reference.cpp
1 /*
2  [auto_generated]
3  libs/numeric/odeint/test/unwrap_boost_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 #define BOOST_TEST_MODULE odeint_unwrap_boost_reference
18
19 #include <boost/numeric/odeint/util/unwrap_reference.hpp>
20 #include <boost/test/unit_test.hpp>
21
22 using namespace boost::unit_test;
23
24 template< typename T >
25 void func( T t )
26 {
27     typedef typename boost::numeric::odeint::unwrap_reference< T >::type type;
28 }
29
30 BOOST_AUTO_TEST_SUITE( unwrap_boost_reference_test )
31
32 BOOST_AUTO_TEST_CASE( test_case )
33 {
34     int a;
35     func( boost::ref( a ) );
36     func( a );
37 }
38
39
40 BOOST_AUTO_TEST_SUITE_END()