Boost logo

Boost :

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


Hi OverminDL1,

> 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
> 1> R:\Programming_Projects\Spirit_Price
> \ejg_uint_parser_timing\other_includes\ejg/timer.cpp(109)
> : while compiling class template member function 'void
> ejg::generic_timer<ticks>::calibrate_seconds(void)'

A bit of a stab in the dark, perhaps change the region around
timer.cpp(109) to

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

I'm now doubly confused as it appears to be complaining about the
return type of std::clock, (the default wall-clock timer). Maybe I
can get my hands on a windows machine and compiler tomorrow....

-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