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-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?

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