From 72bf90d770ce5b2653fd482928646cd6a9f5f6d7 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 15 Jun 2015 15:46:02 -0400 Subject: [PATCH] Fix scheduler build with some boost versions. Some boost versions have a conflicting overload of wait_until that returns void. Explicitly use a template here to avoid hitting that overload. --- src/scheduler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scheduler.cpp b/src/scheduler.cpp index c42eb7244d5..d5bb588b712 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -50,8 +50,10 @@ void CScheduler::serviceQueue() // Keep waiting until timeout } #else + // Some boost versions have a conflicting overload of wait_until that returns void. + // Explicitly use a template here to avoid hitting that overload. while (!shouldStop() && !taskQueue.empty() && - newTaskScheduled.wait_until(lock, taskQueue.begin()->first) != boost::cv_status::timeout) { + newTaskScheduled.wait_until<>(lock, taskQueue.begin()->first) != boost::cv_status::timeout) { // Keep waiting until timeout } #endif