Boost logo

Boost :

From: Richard Corden (richard.corden_at_[hidden])
Date: 2006-03-22 04:41:24


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk