mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 13:50:10 +01:00
Remove unnecessary includes and workarounds from ref_ct_test.
This commit is contained in:
@@ -8,12 +8,9 @@
|
|||||||
|
|
||||||
#include <boost/ref.hpp>
|
#include <boost/ref.hpp>
|
||||||
#include <boost/type_traits/is_same.hpp>
|
#include <boost/type_traits/is_same.hpp>
|
||||||
#include <boost/type_traits/remove_const.hpp>
|
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
#include <boost/mpl/assert.hpp>
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
template< typename T, typename U >
|
template< typename T, typename U >
|
||||||
@@ -39,23 +36,13 @@ void is_reference_wrapper_test(T)
|
|||||||
template< typename R, typename Ref >
|
template< typename R, typename Ref >
|
||||||
void cxx_reference_test(Ref)
|
void cxx_reference_test(Ref)
|
||||||
{
|
{
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
|
||||||
typedef typename boost::remove_const<Ref>::type ref;
|
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<R,ref>::value));
|
|
||||||
#else
|
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<R,Ref>::value));
|
BOOST_STATIC_ASSERT((boost::is_same<R,Ref>::value));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename R, typename Ref >
|
template< typename R, typename Ref >
|
||||||
void unwrap_reference_test(Ref)
|
void unwrap_reference_test(Ref)
|
||||||
{
|
{
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
|
||||||
typedef typename boost::remove_const<Ref>::type ref;
|
|
||||||
typedef typename boost::unwrap_reference<ref>::type type;
|
|
||||||
#else
|
|
||||||
typedef typename boost::unwrap_reference<Ref>::type type;
|
typedef typename boost::unwrap_reference<Ref>::type type;
|
||||||
#endif
|
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<R,type>::value));
|
BOOST_STATIC_ASSERT((boost::is_same<R,type>::value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user