
26 Jun
2006
26 Jun
'06
12:34 p.m.
"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