[Boost-bugs] [Boost C++ Libraries] #8733: Testing for unprotected references to C99 math macros

Subject: [Boost-bugs] [Boost C++ Libraries] #8733: Testing for unprotected references to C99 math macros
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-25 21:58:39


#8733: Testing for unprotected references to C99 math macros
-------------------------------------+-------------------------
 Reporter: Mike Liang <mtliang@…> | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+-------------------------
 Attached is a way to test for unprotected references to C99 math macros on
 platforms where they are implemented as functions. Adding this to a
 released header would make it convenient to test new code for any
 omissions.

 I used this to find the problems submitted in ticket #8732.

 With, for example, fpclassify redefined, any unprotected references will
 expand out to a syntax error.

 {{{
 #define fpclassify(x) (another_fpclassify(x))
 bad_call = boost::math::fpclassify(arg);
 }}}

 becomes

 {{{
 bad_call = boost::math::(another_flclassify(arg));
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8733>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC