summaryrefslogtreecommitdiff
path: root/src/common/thread_queue_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/thread_queue_list.h')
-rw-r--r--src/common/thread_queue_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h
index 323eab97c..e7594db68 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <deque> 8#include <deque>
9#include <functional>
10#include <boost/range/algorithm_ext/erase.hpp> 9#include <boost/range/algorithm_ext/erase.hpp>
11 10
12namespace Common { 11namespace Common {
@@ -50,7 +49,8 @@ struct ThreadQueueList {
50 return T(); 49 return T();
51 } 50 }
52 51
53 T get_first_filter(std::function<bool(T)> filter) const { 52 template <typename UnaryPredicate>
53 T get_first_filter(UnaryPredicate filter) const {
54 const Queue* cur = first; 54 const Queue* cur = first;
55 while (cur != nullptr) { 55 while (cur != nullptr) {
56 if (!cur->data.empty()) { 56 if (!cur->data.empty()) {