Boost logo

Boost :

Subject: Re: [boost] [xpressive] Performance Tuning?
From: Edward Grace (ej.grace_at_[hidden])
Date: 2009-07-19 21:10:06


>
> Sorry for the noise, but the only error I could not get rid of with
> single-line edits to your files is:
> 1>R:\Programming_Projects\Spirit_Price\ejg_uint_parser_timing
> \other_includes\ejg/timer.cpp(117)
> : error C2676: binary '-' : 'ticks' does not define this operator or a
> conversion to a type acceptable to the predefined operator

The while statement?

     chrono_start = chrono();
     while (chrono_wall()-chrono_wall_start < chrono_wall_scale*4);
     chrono_end = chrono();

Hmm. Depending on what the type of 'ticks' from cycle.h is (that's
what you're using right) that should just be a large integer type.
Perhaps try with the util::high_resolution_timer, which is of type
double().

Otherwise do you think the compiler is getting confused between the
name of the template parameter 'ticks' and the type 'ticks'?

-ed

------------------------------------------------
"No more boom and bust." -- Dr. J. G. Brown, 1997


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