summaryrefslogtreecommitdiff
path: root/src/common/thread_queue_list.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-20 21:34:12 -0400
committerGitHub <noreply@github.com>2019-03-20 21:34:12 -0400
commite8ff8a66b0980399a5ad9d54bba06a88b423ba62 (patch)
tree9baf1ca48b65e63ffac2029734e9646c0a514601 /src/common/thread_queue_list.h
parent723ad4512fb33f0a116fd3db851ffe17f3aa6ee8 (diff)
parentf71c598907ea76095dd3e2a71d160ddbe5c6635c (diff)
Merge pull request #2247 from lioncash/include
common/thread_queue_list: Remove unnecessary dependency on boost
Diffstat (limited to 'src/common/thread_queue_list.h')
-rw-r--r--src/common/thread_queue_list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h
index e7594db68..791f99a8c 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -6,7 +6,6 @@
#include <array>
#include <deque>
-#include <boost/range/algorithm_ext/erase.hpp>
namespace Common {
@@ -111,8 +110,9 @@ struct ThreadQueueList {
}
void remove(Priority priority, const T& thread_id) {
- Queue* cur = &queues[priority];
- boost::remove_erase(cur->data, thread_id);
+ Queue* const cur = &queues[priority];
+ const auto iter = std::remove(cur->data.begin(), cur->data.end(), thread_id);
+ cur->data.erase(iter, cur->data.end());
}
void rotate(Priority priority) {