[Boost-bugs] [Boost C++ Libraries] #11496: config test math_info has issue with INFINITY

Subject: [Boost-bugs] [Boost C++ Libraries] #11496: config test math_info has issue with INFINITY
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-23 17:53:00


#11496: config test math_info has issue with INFINITY
---------------------------------------+-------------------------
 Reporter: Ed Vogel <edward.vogel@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: |
---------------------------------------+-------------------------
 The config test math_info contains:

 #ifdef INFINITY
    PRINT_EXPRESSION(INFINITY);
 #endif

 The test expects this program to compile/run cleanly. This may not be
 case. According to the standard:

               INFINITY

        expands to a constant expression of type float representing
        positive or unsigned infinity, if available; else to a
        positive constant of type float that overflows at
        translation time.192)


 So...it's perfectly valid for this test to fail at compile-time.

 Not sure how to easily fix this...

 Thanks,

 Ed

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11496>
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:18 UTC