mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 12:47:28 +02:00
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Process #ifndef...#endif conditions. [SVN r86244]
This commit is contained in:
@ -107,7 +107,6 @@ template< class T > struct sp_if_not_array
|
|||||||
typedef boost::shared_ptr< T > type;
|
typedef boost::shared_ptr< T > type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T > struct sp_if_not_array< T[] >
|
template< class T > struct sp_if_not_array< T[] >
|
||||||
{
|
{
|
||||||
@ -121,7 +120,6 @@ template< class T, std::size_t N > struct sp_if_not_array< T[N] >
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
|
@ -70,7 +70,6 @@ template< class T > struct sp_element
|
|||||||
typedef T type;
|
typedef T type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T > struct sp_element< T[] >
|
template< class T > struct sp_element< T[] >
|
||||||
{
|
{
|
||||||
@ -86,7 +85,6 @@ template< class T, std::size_t N > struct sp_element< T[N] >
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// sp_dereference, return type of operator*
|
// sp_dereference, return type of operator*
|
||||||
|
|
||||||
@ -119,7 +117,6 @@ template<> struct sp_dereference< void const volatile >
|
|||||||
|
|
||||||
#endif // !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS)
|
#endif // !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS)
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T > struct sp_dereference< T[] >
|
template< class T > struct sp_dereference< T[] >
|
||||||
{
|
{
|
||||||
@ -135,7 +132,6 @@ template< class T, std::size_t N > struct sp_dereference< T[N] >
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// sp_member_access, return type of operator->
|
// sp_member_access, return type of operator->
|
||||||
|
|
||||||
@ -144,7 +140,6 @@ template< class T > struct sp_member_access
|
|||||||
typedef T * type;
|
typedef T * type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T > struct sp_member_access< T[] >
|
template< class T > struct sp_member_access< T[] >
|
||||||
{
|
{
|
||||||
@ -160,7 +155,6 @@ template< class T, std::size_t N > struct sp_member_access< T[N] >
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// sp_array_access, return type of operator[]
|
// sp_array_access, return type of operator[]
|
||||||
|
|
||||||
@ -169,7 +163,6 @@ template< class T > struct sp_array_access
|
|||||||
typedef void type;
|
typedef void type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T > struct sp_array_access< T[] >
|
template< class T > struct sp_array_access< T[] >
|
||||||
{
|
{
|
||||||
@ -185,7 +178,6 @@ template< class T, std::size_t N > struct sp_array_access< T[N] >
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// sp_extent, for operator[] index check
|
// sp_extent, for operator[] index check
|
||||||
|
|
||||||
@ -194,14 +186,12 @@ template< class T > struct sp_extent
|
|||||||
enum _vt { value = 0 };
|
enum _vt { value = 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T, std::size_t N > struct sp_extent< T[N] >
|
template< class T, std::size_t N > struct sp_extent< T[N] >
|
||||||
{
|
{
|
||||||
enum _vt { value = N };
|
enum _vt { value = N };
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// enable_shared_from_this support
|
// enable_shared_from_this support
|
||||||
|
|
||||||
@ -277,7 +267,6 @@ template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr
|
|||||||
boost::detail::sp_enable_shared_from_this( ppx, p, p );
|
boost::detail::sp_enable_shared_from_this( ppx, p, p );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[] > * /*ppx*/, Y * p, boost::detail::shared_count & pn )
|
template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[] > * /*ppx*/, Y * p, boost::detail::shared_count & pn )
|
||||||
{
|
{
|
||||||
@ -291,7 +280,6 @@ template< class T, std::size_t N, class Y > inline void sp_pointer_construct( bo
|
|||||||
boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn );
|
boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
// deleter constructor helper
|
// deleter constructor helper
|
||||||
|
|
||||||
@ -300,7 +288,6 @@ template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr
|
|||||||
boost::detail::sp_enable_shared_from_this( ppx, p, p );
|
boost::detail::sp_enable_shared_from_this( ppx, p, p );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[] > * /*ppx*/, Y * /*p*/ )
|
template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[] > * /*ppx*/, Y * /*p*/ )
|
||||||
{
|
{
|
||||||
@ -312,7 +299,6 @@ template< class T, std::size_t N, class Y > inline void sp_deleter_construct( bo
|
|||||||
sp_assert_convertible< Y[N], T[N] >();
|
sp_assert_convertible< Y[N], T[N] >();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
|
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user