Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51951 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-03-24 06:05:47


Author: johnmaddock
Date: 2009-03-24 06:05:46 EDT (Tue, 24 Mar 2009)
New Revision: 51951
URL: http://svn.boost.org/trac/boost/changeset/51951

Log:
Fix use of C99 macro names.
Text files modified:
   trunk/boost/math/special_functions/sign.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/sign.hpp
==============================================================================
--- trunk/boost/math/special_functions/sign.hpp (original)
+++ trunk/boost/math/special_functions/sign.hpp 2009-03-24 06:05:46 EDT (Tue, 24 Mar 2009)
@@ -71,14 +71,14 @@
 template <class T>
 inline int sign BOOST_NO_MACRO_EXPAND(const T& z)
 {
- return (z == 0) ? 0 : signbit(z) ? -1 : 1;
+ return (z == 0) ? 0 : (boost::math::signbit)(z) ? -1 : 1;
 }
 
 template <class T>
 inline T copysign BOOST_NO_MACRO_EXPAND(const T& x, const T& y)
 {
    BOOST_MATH_STD_USING
- return fabs(x) * (boost::math::signbit(y) ? -1 : 1);
+ return fabs(x) * ((boost::math::signbit)(y) ? -1 : 1);
 }
 
 } // namespace math


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