
"John Maddock" <john@johnmaddock.co.uk> wrote in message news:018f01c64db1$03cca050$65330252@fuji...
FYI I have discovered that in my useage of min the advice doesnt seem to help, my use being default construction of a temporary of type named max or min:
From one of my test files I currently ended up using the obvious workaround:
How about:
BOOST_CHECK(units_str( boost::pqs::time::min BOOST_PREVENT_MACRO_SUBSTITUTION()) == "min");
using VC7.1 and I enabling language extensions ( reqd for e.g Windows.h) that comes up at the above line (N) with: sourcefile(N) :warning C4003: not enough actual parameters for macro 'min' sourcefile(N) :warning C4003: not enough actual parameters for macro 'min' sourcefile(N) :error C2589: '(' : illegal token on right side of '::' sourcefile(N) :error C2143: syntax error : missing ')' before '::' sourcefile(N) :error C2059: syntax error : ')' sourcefile(N) :error C3861: 'units_str': identifier not found, even with argument-dependent lookup regards Andy Little