
22 Mar
2006
22 Mar
'06
9:41 a.m.
John Maddock wrote:
I've just been hit by Boost.Test not following the min/max coding guidelines, the patch is trivial:
Index: boost/test/floating_point_comparison.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/test/floating_point_comparison.hpp,v retrieving revision 1.26 diff -r1.26 floating_point_comparison.hpp 66c66 < return std::numeric_limits<FPT>::max(); ---
return (std::numeric_limits<FPT>::max)();
Can I ask what is the purpose of adding parenthesis to the qualified name? ADL should not take place for the qualified name? Do some compilers get this wrong? Is there another reason? Regards, Richard