mirror of
https://github.com/boostorg/core.git
synced 2025-08-12 03:04:56 +02:00
Switch ref_ct_test to core::is_same.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
// see 'ref_test.cpp' for run-time part
|
// see 'ref_test.cpp' for run-time part
|
||||||
|
|
||||||
#include <boost/ref.hpp>
|
#include <boost/ref.hpp>
|
||||||
#include <boost/type_traits/is_same.hpp>
|
#include <boost/core/is_same.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
@@ -17,8 +17,8 @@ template< typename T, typename U >
|
|||||||
void ref_test(boost::reference_wrapper<U>)
|
void ref_test(boost::reference_wrapper<U>)
|
||||||
{
|
{
|
||||||
typedef typename boost::reference_wrapper<U>::type type;
|
typedef typename boost::reference_wrapper<U>::type type;
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<U,type>::value));
|
BOOST_STATIC_ASSERT((boost::core::is_same<U,type>::value));
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<T,type>::value));
|
BOOST_STATIC_ASSERT((boost::core::is_same<T,type>::value));
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@@ -36,14 +36,14 @@ 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)
|
||||||
{
|
{
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<R,Ref>::value));
|
BOOST_STATIC_ASSERT((boost::core::is_same<R,Ref>::value));
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename R, typename Ref >
|
template< typename R, typename Ref >
|
||||||
void unwrap_reference_test(Ref)
|
void unwrap_reference_test(Ref)
|
||||||
{
|
{
|
||||||
typedef typename boost::unwrap_reference<Ref>::type type;
|
typedef typename boost::unwrap_reference<Ref>::type type;
|
||||||
BOOST_STATIC_ASSERT((boost::is_same<R,type>::value));
|
BOOST_STATIC_ASSERT((boost::core::is_same<R,type>::value));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Reference in New Issue
Block a user