From bc9129719e8aa757a21f3344587ae4059c49d43c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 22 Jan 2001 04:27:00 +0000 Subject: [PATCH] Undid a bug I introduced yesterday. numeric_cast<> never worked with stock GCC; trying to get it to do that broke vc-stlport. [SVN r8703] --- include/boost/cast.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/cast.hpp b/include/boost/cast.hpp index 839b452..031cc5d 100644 --- a/include/boost/cast.hpp +++ b/include/boost/cast.hpp @@ -9,6 +9,9 @@ // See http://www.boost.org for most recent version including documentation. // Revision History +// 21 Jan 01 Undid a bug I introduced yesterday. numeric_cast<> never +// worked with stock GCC; trying to get it to do that broke +// vc-stlport. // 20 Jan 01 Moved BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS to config.hpp. // Removed unused BOOST_EXPLICIT_TARGET macro. Moved // boost::detail::type to boost/type.hpp. Made it compile with @@ -288,11 +291,13 @@ namespace boost template inline Target numeric_cast(Source arg BOOST_EXPLICIT_DEFAULT_TARGET) { -#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS +#ifndef BOOST_NO_LIMITS // typedefs abbreviating respective trait classes typedef std::numeric_limits arg_traits; typedef detail::fixed_numeric_limits result_traits; - +#endif + +#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS // typedefs that act as compile time assertions // (to be replaced by boost compile time assertions // as and when they become available and are stable)