Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-03-22 08:03:26


>> 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");

John.


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