|
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-30 13:48:33
> Basically, what I'm trying to do is:
>
> Â Â Â using namespace boost::posix_time;
> Â Â Â using namespace boost::this_thread;
>
> Â Â Â time_duration td = milliseconds(2000);
> Â Â Â sleep(&td);
Just curious: what's the purpose of the ampersand here?
http://www.boost.org/doc/libs/1_46_1/doc/html/thread/thread_management.html#thread.thread_management.this_thread.sleep
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