Borland fixes.

[SVN r81437]
This commit is contained in:
Peter Dimov
2012-11-20 15:22:19 +00:00
parent 98b92fa83a
commit 7835914d83
2 changed files with 20 additions and 0 deletions

View File

@@ -109,12 +109,16 @@ template< class T > struct sp_if_not_array< T[] >
{ {
}; };
#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 )
template< class T, std::size_t N > struct sp_if_not_array< T[N] > template< class T, std::size_t N > struct sp_if_not_array< T[N] >
{ {
}; };
#endif #endif
#endif
} // namespace detail } // namespace detail
#if !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING ) #if !defined( BOOST_NO_FUNCTION_TEMPLATE_ORDERING )

View File

@@ -81,11 +81,15 @@ template< class T > struct sp_element< T[] >
typedef T type; typedef T type;
}; };
#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 )
template< class T, std::size_t N > struct sp_element< T[N] > template< class T, std::size_t N > struct sp_element< T[N] >
{ {
typedef T type; typedef T type;
}; };
#endif
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) #endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
// sp_dereference, return type of operator* // sp_dereference, return type of operator*
@@ -126,11 +130,15 @@ template< class T > struct sp_dereference< T[] >
typedef void type; typedef void type;
}; };
#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 )
template< class T, std::size_t N > struct sp_dereference< T[N] > template< class T, std::size_t N > struct sp_dereference< T[N] >
{ {
typedef void type; typedef void type;
}; };
#endif
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) #endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
// sp_member_access, return type of operator-> // sp_member_access, return type of operator->
@@ -147,11 +155,15 @@ template< class T > struct sp_member_access< T[] >
typedef void type; typedef void type;
}; };
#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 )
template< class T, std::size_t N > struct sp_member_access< T[N] > template< class T, std::size_t N > struct sp_member_access< T[N] >
{ {
typedef void type; typedef void type;
}; };
#endif
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) #endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
// sp_array_access, return type of operator[] // sp_array_access, return type of operator[]
@@ -168,11 +180,15 @@ template< class T > struct sp_array_access< T[] >
typedef T & type; typedef T & type;
}; };
#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 )
template< class T, std::size_t N > struct sp_array_access< T[N] > template< class T, std::size_t N > struct sp_array_access< T[N] >
{ {
typedef T & type; typedef T & type;
}; };
#endif
#endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) #endif // !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
// sp_extent, for operator[] index check // sp_extent, for operator[] index check