Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52679 - trunk/boost/spirit/home/support/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-04-30 12:58:26


Author: hkaiser
Date: 2009-04-30 12:58:25 EDT (Thu, 30 Apr 2009)
New Revision: 52679
URL: http://svn.boost.org/trac/boost/changeset/52679

Log:
Added pairs of parenthesis to avoid macro expansion
Text files modified:
   trunk/boost/spirit/home/support/detail/sign.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/sign.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/sign.hpp (original)
+++ trunk/boost/spirit/home/support/detail/sign.hpp 2009-04-30 12:58:25 EDT (Thu, 30 Apr 2009)
@@ -32,19 +32,19 @@
     template<typename T>
     inline bool (signbit)(T x)
     {
- return boost::spirit::math::signbit(x);
+ return (boost::spirit::math::signbit)(x);
     }
 
     template<typename T>
     inline T (changesign)(T x)
     {
- return boost::spirit::math::changesign(x);
+ return (boost::spirit::math::changesign)(x);
     }
 #else
     template<typename T>
     inline bool (signbit)(T x)
     {
- return boost::math::signbit(x) ? true : false;
+ return (boost::math::signbit)(x) ? true : false;
     }
 
     // This routine has been taken and adapted from Johan Rade's fp_traits


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