From 43f525298ed7a02289a82222f5d57eed3cd61fdb Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Mon, 28 May 2001 14:22:30 +0000 Subject: [PATCH] Remove compiler workarounds no longer needed due to BOOST_STATIC_ASSERT fix. For stylistic reasons, change sizeof() test to sizeof() != 0 [SVN r10236] --- include/boost/utility.hpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/include/boost/utility.hpp b/include/boost/utility.hpp index 5942fb9..f1a6389 100644 --- a/include/boost/utility.hpp +++ b/include/boost/utility.hpp @@ -39,24 +39,16 @@ namespace boost template< typename T > inline void checked_delete(T * x) { -# if !((defined(__BORLANDC__) && __BORLANDC__ <= 0x0551) || (defined(__ICL) && __ICL <= 500)) - BOOST_STATIC_ASSERT( sizeof(T) ); // assert type complete at point - // of instantiation -# else - sizeof(T); // force error if type incomplete -# endif + BOOST_STATIC_ASSERT( sizeof(T) != 0 ); // assert type complete at point + // of instantiation delete x; } template< typename T > inline void checked_array_delete(T * x) { -# if !((defined(__BORLANDC__) && __BORLANDC__ <= 0x0551) || (defined(__ICL) && __ICL <= 500)) - BOOST_STATIC_ASSERT( sizeof(T) ); // assert type complete at point - // of instantiation -# else - sizeof(T); // force error if type incomplete -# endif + BOOST_STATIC_ASSERT( sizeof(T) != 0 ); // assert type complete at point + // of instantiation delete [] x; }