Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait_for() doesn't compile #790

stevenrbrandt opened this issue Jul 5, 2013 · 0 comments


None yet
2 participants
Copy link

commented Jul 5, 2013

This code doesn't compile

345         hpx::lcos::future<int> future = p->get_future();
346         boost::chrono::nanoseconds tn(
347             static_cast<long long>(1000000000LL*tm.tv_sec+tm.tv_nsec));
348         future.wait_for(tn);

/home/sbrandt/src/hpxc/src/threads/thread.cpp:348:27: required from here
/home/sbrandt/install/hpx/include/hpx/lcos/future.hpp:267:61: error: passing ‘const hpx::lcos::future’ as ‘this’ argument of ‘hpx::lcos::future_status hpx::lcos::future::wait_for(const boost::posix_time::time_duration&) [with Result = int]’ discards qualifiers [-fpermissive]

Bryce tells me he believes this to be a bug in HPX.

@ghost ghost assigned hkaiser Jul 6, 2013

@hkaiser hkaiser closed this in c7f6814 Jul 6, 2013

hkaiser added a commit that referenced this issue Jul 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.