From 5b4d28708c35b84da433fa0cb5567ac71c3ae1db Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 11 Feb 2001 16:13:38 +0000 Subject: [PATCH] Fixes for Borland [SVN r9117] --- numeric_traits_test.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/numeric_traits_test.cpp b/numeric_traits_test.cpp index 0bc0ca5..3b169bf 100644 --- a/numeric_traits_test.cpp +++ b/numeric_traits_test.cpp @@ -7,6 +7,7 @@ // See http://www.boost.org for most recent version including documentation. // Revision History +// 11 Feb 2001 Fixes for Borland (David Abrahams) // 23 Jan 2001 Added test for wchar_t (David Abrahams) // 23 Jan 2001 Now statically selecting a test for signed numbers to avoid // warnings with fancy compilers. Added commentary and @@ -349,8 +350,15 @@ void test(Number* = 0) << "digits: " << std::numeric_limits::digits << "\n" #endif << "..." << std::flush; - typedef typename boost::detail::numeric_traits::difference_type difference_type; - BOOST_STATIC_ASSERT(boost::detail::is_signed::value); + + // factoring out difference_type for the assert below confused Borland :( + typedef boost::detail::is_signed< +#ifndef BOOST_MSVC + typename +#endif + boost::detail::numeric_traits::difference_type + > is_signed; + BOOST_STATIC_ASSERT(is_signed::value); typedef typename boost::detail::if_true< boost::detail::is_signed::value