|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82301 - trunk/boost/thread/win32
From: vicente.botet_at_[hidden]
Date: 2012-12-31 09:49:42
Author: viboes
Date: 2012-12-31 09:49:41 EST (Mon, 31 Dec 2012)
New Revision: 82301
URL: http://svn.boost.org/trac/boost/changeset/82301
Log:
Thread: Fix condition_variable/any::wait_for pred with boost::move
Text files modified:
trunk/boost/thread/win32/condition_variable.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/thread/win32/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/win32/condition_variable.hpp (original)
+++ trunk/boost/thread/win32/condition_variable.hpp 2012-12-31 09:49:41 EST (Mon, 31 Dec 2012)
@@ -405,7 +405,7 @@
const chrono::duration<Rep, Period>& d,
Predicate pred)
{
- return wait_until(lock, chrono::steady_clock::now() + d, pred);
+ return wait_until(lock, chrono::steady_clock::now() + d, boost::move(pred));
}
#endif
};
@@ -519,7 +519,7 @@
const chrono::duration<Rep, Period>& d,
Predicate pred)
{
- return wait_until(lock, chrono::steady_clock::now() + d, pred);
+ return wait_until(lock, chrono::steady_clock::now() + d, boost::move(pred));
}
#endif
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk