Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52770 - trunk/boost/spirit/home/karma/numeric/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-05 10:06:05


Author: hkaiser
Date: 2009-05-05 10:06:05 EDT (Tue, 05 May 2009)
New Revision: 52770
URL: http://svn.boost.org/trac/boost/changeset/52770

Log:
Spirit: added some parenthesis' avoiding macro expansion of certain names
Text files modified:
   trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 24 ++++++++++++------------
   1 files changed, 12 insertions(+), 12 deletions(-)

Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2009-05-05 10:06:05 EDT (Tue, 05 May 2009)
@@ -73,17 +73,17 @@
 
         inline float absolute_value (float n)
         {
- return spirit::detail::signbit(n) ? -n : n;
+ return (spirit::detail::signbit)(n) ? -n : n;
         }
 
         inline double absolute_value (double n)
         {
- return spirit::detail::signbit(n) ? -n : n;
+ return (spirit::detail::signbit)(n) ? -n : n;
         }
 
         inline long double absolute_value (long double n)
         {
- return spirit::detail::signbit(n) ? -n : n;
+ return (spirit::detail::signbit)(n) ? -n : n;
         }
 
         template <typename T>
@@ -97,17 +97,17 @@
         ///////////////////////////////////////////////////////////////////////
         inline bool is_negative(float n)
         {
- return spirit::detail::signbit(n) ? true : false;
+ return (spirit::detail::signbit)(n) ? true : false;
         }
 
         inline bool is_negative(double n)
         {
- return spirit::detail::signbit(n) ? true : false;
+ return (spirit::detail::signbit)(n) ? true : false;
         }
 
         inline bool is_negative(long double n)
         {
- return spirit::detail::signbit(n) ? true : false;
+ return (spirit::detail::signbit)(n) ? true : false;
         }
 
         template <typename T>
@@ -119,17 +119,17 @@
         ///////////////////////////////////////////////////////////////////////
         inline bool is_zero(float n)
         {
- return math::fpclassify(n) == FP_ZERO;
+ return (math::fpclassify)(n) == FP_ZERO;
         }
 
         inline bool is_zero(double n)
         {
- return math::fpclassify(n) == FP_ZERO;
+ return (math::fpclassify)(n) == FP_ZERO;
         }
 
         inline bool is_zero(long double n)
         {
- return math::fpclassify(n) == FP_ZERO;
+ return (math::fpclassify)(n) == FP_ZERO;
         }
 
         template <typename T>
@@ -533,7 +533,7 @@
         static bool
         call (OutputIterator& sink, float n, Policies const& p = Policies())
         {
- int fpclass = math::fpclassify(n);
+ int fpclass = (math::fpclassify)(n);
             if (FP_NAN == fpclass)
                 return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
             else if (FP_INFINITE == fpclass)
@@ -545,7 +545,7 @@
         static bool
         call (OutputIterator& sink, double n, Policies const& p = Policies())
         {
- int fpclass = math::fpclassify(n);
+ int fpclass = (math::fpclassify)(n);
             if (FP_NAN == fpclass)
                 return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
             else if (FP_INFINITE == fpclass)
@@ -557,7 +557,7 @@
         static bool
         call (OutputIterator& sink, long double n, Policies const& p = Policies())
         {
- int fpclass = math::fpclassify(n);
+ int fpclass = (math::fpclassify)(n);
             if (FP_NAN == fpclass)
                 return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
             else if (FP_INFINITE == fpclass)


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