Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2006-03-22 04:52:36


Richard Corden wrote:

[...]
>>> return (std::numeric_limits<FPT>::max)();
>
>
>
> Can I ask what is the purpose of adding parenthesis to the qualified name?

It inhibits macro expansion.

> ADL should not take place for the qualified name? Do some compilers get
> this wrong?

Some environments still insist on #defining macros for min and max.

Regards,
m
Send instant messages to your online friends http://au.messenger.yahoo.com


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