From: Richard Corden (richard.corden_at_[hidden])
Date: 2006-03-22 07:06:34


Markus Schöpflin wrote:
> Richard Corden wrote:
>
> [...]
>
>
>>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?
>
>
> See http://www.boost.org/more/lib_guide.htm#Guidelines.

The guidelines actually confused me a little. The first bullet for
calling min or max has:

If you want to call std::min() or std::max():

     * If you do not require argument-dependent look-up, use
(std::min)(a,b).

I got caught up in the ADL part and didn't realise that the parenthesis
were there to stop macro expansion not to stop ADL.

Regards,

Richard