Closed GoogleCodeExporter closed 8 years ago
...using the std namespace, I meant.
Original comment by kyle.nie...@gmail.com
on 1 May 2014 at 5:06
The "::" with no prefix is to specify the global namespace, not namespace std,
which is required for some compilers / standard library implementations.
The problem is that "isnan" and "isinf" are only part of the C++ standard as of
C++11, but are frequently available in the global namespace by virtue of being
available in C99 (which isn't part of the C++03 standard, either).
What I think is needed here is another configuration check to determine the
correct way to call isnan/isinf, as the platform-based heuristic currently used
is apparently insufficient.
Original comment by yarmond
on 1 May 2014 at 9:41
It looks like you may be able to check the value of "__cplusplus" for some
compilers (e.g., gcc), although it appears Visual Studio doesn't support this.
Original comment by kyle.nie...@gmail.com
on 1 May 2014 at 9:52
I think this should be fixed by r2928, if you could please confirm.
Original comment by yarmond
on 3 May 2014 at 5:41
Yes, that revision builds and tests without error. Thanks!
Original comment by kyle.nie...@gmail.com
on 3 May 2014 at 6:07
Original comment by yarmond
on 3 May 2014 at 6:26
Original issue reported on code.google.com by
kyle.nie...@gmail.com
on 1 May 2014 at 5:05