
On 3.9.2012. 10:26, Avi Bahra wrote:
Can any one suggest *any* hacks/workarounds that gets me pass these errors. Is it possible to use gcc on HPUX with boost 1.51 ?
The docs for boost thread 1.51 say this:
Boost.Thread uses by default Boost.Chrono for the time related functions. For backward compatibility and also for compilers that don't work well with Boost.Chrono the user can define BOOST_THREAD_DONT_USE_CHRONO. If BOOST_THREAD_DONT_USE_SYSTEM is defined then BOOST_THREAD_DONT_USE_CHRONO is defined implicitly.
BOOST_THREAD_USES_CHRONO is defined when Boost.Thread uses Boost.Chrono.
I have already tried BOOST_THREAD_DONT_USE_CHRONO and it has no effect.
It appears that some of headers files are not guarded with this.
In my case
$BOOST_ROOT/boost/chrono/system_clocks.hpp
$BOOST_ROOT/boost/ratio/detail/overflow_helpers.hpp
$BOOST_ROOT/boost/thread/future.hpp
do not compile,
Also Is it possible to make a request to change:
$BOOST_ROOT/boost/thread/future.hpp
line:603
for(count_type i=0;i