|
|
Am 30.06.2014 23:33, schrieb clipka:
>> * base/colour.h , still the max() vs fabs() as double and float.
>
> Now this starts getting me puzzled. Can you double-check whether we
> still have any reference to math.h in our code?
I /think/ I can solve this riddle now:
While the C++03 standard is very ambiguous (at least to me) about
whether the functions provided by <cmath> should live in the global or
std:: namespace, the C++11 standard clarifies this, indicating that
<cmath> /must/ provide the functions in the std:: namespace, and /may/
also provide them in the global namespace.
It appears to me that the GCC <cmath> header does the most confusing
thing, by providing only /some/ functions in the global namespace -
namely those for the "double" data type.
Ready for the next round.
Post a reply to this message
|
|