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:
...and I don't see any "->" there.

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



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at