Opened 7 years ago
Closed 7 years ago
#11496 closed Bugs (wontfix)
config test math_info has issue with INFINITY
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.
I understand that this may be a theoretical issue, but in practice, it seems to work fine. If there are particular compilers that have an issue with this, then we can add special cases for those.