$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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