Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-06-26 08:34:22


"Martin Bonner" wrote
> The solution is to wrap the function name in parens, so what you would
> write is:
>
> return (numeric_limits<double::max)();
>
> That means the preprocessore sees "max" and ")", and doesn't try to
> expand the macro.

Doesnt work for this scenario though:

#include <windows.h>
struct my{
    typedef int min;
};

int main()
{
    int n = my::min();
}

regards
Andy Little


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