diff --git a/include/boost/detail/numeric_traits.hpp b/include/boost/detail/numeric_traits.hpp index 16cfa4d..e794bbd 100644 --- a/include/boost/detail/numeric_traits.hpp +++ b/include/boost/detail/numeric_traits.hpp @@ -49,6 +49,8 @@ // See http://www.boost.org for most recent version including documentation. // Revision History +// 11 Feb 2001 - Rolled back ineffective Borland-specific code +// (David Abrahams) // 10 Feb 2001 - Rolled in supposed Borland fixes from John Maddock, but // not seeing any improvement yet (David Abrahams) // 06 Feb 2001 - Factored if_true out into boost/detail/select_type.hpp @@ -125,37 +127,9 @@ namespace boost { namespace detail { }; #endif -#ifdef __BORLANDC__ // // This code from John Maddock, but doesn't seem to make any difference -template -struct select_diff -{ - typedef std::ptrdiff_t difference_type; -}; -template -struct select_diff -{ - typedef T difference_type; -}; -template -struct select_diff -{ - typedef intmax_t difference_type; -}; -template -struct select_diff -{ - typedef std::ptrdiff_t difference_type; -}; -template -struct select_diff -{ - typedef intmax_t difference_type; -}; -#endif - // Template class integer_traits -- traits of various integer types // This should probably be rolled into boost::integer_traits one day, but I -// need it to work without + // need it to work without template struct integer_traits { @@ -190,14 +164,6 @@ struct select_diff // else intmax_t >::type>::type>::type difference_type; -# elif defined(__BORLANDC__) // This code from John Maddock, but doesn't seem to make any difference - BOOST_STATIC_ASSERT(boost::is_integral::value); - typedef select_diff::value), - (sizeof(Integer) >= sizeof(intmax_t)), - (sizeof(Integer) < sizeof(std::ptrdiff_t))> t; - typedef typename t::difference_type difference_type; - #else BOOST_STATIC_ASSERT(boost::is_integral::value);