boost timer usage question
Posted
by stefita
on Stack Overflow
See other posts from Stack Overflow
or by stefita
Published on 2010-05-03T14:45:13Z
Indexed on
2010/05/03
14:48 UTC
Read the original article
Hit count: 208
I have a really simple question, yet I can't find an answer for it. I guess I am missing something in the usage of the boost timer.hpp. Here is my code, that unfortunately gives me an error message:
include <boost/timer.hpp>
int main() {
boost::timer t;
}
And the error messages are as follows:
/usr/include/boost/timer.hpp: In member function ‘double boost::timer::elapsed_max() const’:
/usr/include/boost/timer.hpp:59: error: ‘numeric_limits’ is not a member of ‘std’
/usr/include/boost/timer.hpp:59: error: ‘::max’ has not been declared
/usr/include/boost/timer.hpp:59: error: expected primary-expression before ‘double’
/usr/include/boost/timer.hpp:59: error: expected `)' before ‘double’
The used library is boost 1.36 (SUSE 11.1).
Thanks in advance!
© Stack Overflow or respective owner