|
Boost : |
From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2004-02-28 22:35:24
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Thomas Witt
> I do not get it. IIUC ADL does not apply to a qualified name. I.e.
> std::min is just std::min and that's it.
You have to do it to prevent macro expansion from a definition like this:
#define min(x, y) ((x) < (y) ? (x) : (y))
std::min(1, 2) // std::((1) < (2) ? (1) : (2))
(std::min)(1, 2) // (std::min)(1, 2)
Regards,
Paul Mensonides
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk