Boost logo

Boost :

Subject: Re: [boost] [xpressive] Performance Tuning?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-19 21:07:19


AMDG

Edward Grace wrote:
>> 1>R:\Programming_Projects\Spirit_Price\ejg_uint_parser_timing\other_includes\ejg/timer.cpp(273)
>>
>> : warning C4003: not enough actual parameters for macro 'max'
>
> time_raw_atom( _Operation f) {
> ticks t0(0),t1(0),delta(std::numeric_limits<ticks>::max());
>
> Ok. I bet MSVC (that's what you're using right) defines macros called
> "min" and "max". I guess that's what happens when one sips from the
> teat of the devil. A couple of undefs perhaps..

Strictly speaking it's windows.h not msvc that #define's min and max.
See
http://www.boost.org/development/requirements.html#Design_and_Programming
for acceptable workarounds.

In Christ,
Steven Watanabe


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