Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] this_tread::sleep won't compile with gcc, "no match for operator+"
From: Igor R (boost.lists_at_[hidden])
Date: 2011-05-31 11:53:42


> And it's true, in win32 version this_thread::sleep() declaration is
> inline void sleep(TimeDuration const& rel_time)
>         {
>
> interruptible_wait(detail::pin_to_zero(rel_time->total_milliseconds()));
>         }
> TimeDuration=boost::posix_time::time_duration
>
> so rel_time->total_milliseconds() get a compiler error:

I'm looking at this:
http://www.boost.org/doc/libs/1_46_1/boost/thread/win32/thread_data.hpp
...and I don't see any "->" there.

Do you work with the official 1.46.1 release, or with some dev trunk?

HTH,

Igor'.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net