Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-06-07 13:44:28


Author: steven_watanabe
Date: 2008-06-07 13:44:28 EDT (Sat, 07 Jun 2008)
New Revision: 46218
URL: http://svn.boost.org/trac/boost/changeset/46218

Log:
Use int instead of float_denorm_style for msvc 8.0 with stlport 5.1
Text files modified:
   trunk/boost/units/limits.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/units/limits.hpp
==============================================================================
--- trunk/boost/units/limits.hpp (original)
+++ trunk/boost/units/limits.hpp 2008-06-07 13:44:28 EDT (Sat, 07 Jun 2008)
@@ -39,7 +39,6 @@
         static const bool has_infinity = std::numeric_limits<T>::has_infinity;
         static const bool has_quiet_NaN = std::numeric_limits<T>::has_quiet_NaN;
         static const bool has_signaling_NaN = std::numeric_limits<T>::has_signaling_NaN;
- static const float_denorm_style has_denorm = std::numeric_limits<T>::has_denorm;
         static const bool has_denorm_loss = std::numeric_limits<T>::has_denorm_loss;
         static quantity_type infinity() { return(quantity_type::from_value(std::numeric_limits<T>::infinity())); }
         static quantity_type quiet_NaN() { return(quantity_type::from_value(std::numeric_limits<T>::quiet_NaN())); }
@@ -50,7 +49,13 @@
         static const bool is_modulo = std::numeric_limits<T>::is_modulo;
         static const bool traps = std::numeric_limits<T>::traps;
         static const bool tinyness_before = std::numeric_limits<T>::tinyness_before;
+#if defined(_STLP_STATIC_CONST_INIT_BUG)
+ static const int has_denorm = std::numeric_limits<T>::has_denorm;
+ static const int round_style = std::numeric_limits<T>::round_style;
+#else
+ static const float_denorm_style has_denorm = std::numeric_limits<T>::has_denorm;
         static const float_round_style round_style = std::numeric_limits<T>::round_style;
+#endif
 };
 
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk