]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (C) Copyright John Maddock 2005. |
2 | // Use, modification and distribution are subject to the | |
3 | // Boost Software License, Version 1.0. (See accompanying file | |
4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #ifndef BOOST_TR1_TEST_RESULT_HPP | |
7 | #define BOOST_TR1_TEST_RESULT_HPP | |
8 | ||
9 | #include <boost/type_traits/is_same.hpp> | |
10 | #include <boost/type_traits/remove_cv.hpp> | |
11 | #include <boost/static_assert.hpp> | |
12 | ||
13 | template <class T1, class T2> | |
14 | void verify_return_type(T1, T2) | |
15 | { | |
16 | // This is a workaround for the broken type | |
17 | // deduction in Borland C++: | |
18 | typedef typename boost::remove_cv<T1>::type T1CV; | |
19 | typedef typename boost::remove_cv<T2>::type T2CV; | |
20 | BOOST_STATIC_ASSERT( (::boost::is_same<T1CV, T2CV>::value)); | |
21 | } | |
22 | ||
23 | ||
24 | #endif | |
25 |