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)
6 #ifndef BOOST_TR1_TEST_RESULT_HPP
7 #define BOOST_TR1_TEST_RESULT_HPP
9 #include <boost/type_traits/is_same.hpp>
10 #include <boost/type_traits/remove_cv.hpp>
11 #include <boost/static_assert.hpp>
13 template <class T1, class T2>
14 void verify_return_type(T1, T2)
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));