diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-16 09:41:34 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-16 10:01:39 +0100 |
commit | f71c598907ea76095dd3e2a71d160ddbe5c6635c (patch) | |
tree | c8d7816de761adcbeec2d9613c1fdd0046b180f7 | |
parent | Merge pull request #2241 from lioncash/compile-flags (diff) | |
download | yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar.gz yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar.bz2 yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar.lz yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar.xz yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.tar.zst yuzu-f71c598907ea76095dd3e2a71d160ddbe5c6635c.zip |
-rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/common/thread_queue_list.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 3d30f0e3e..fecef967b 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -128,4 +128,4 @@ endif() create_target_directory_groups(common) -target_link_libraries(common PUBLIC Boost::boost fmt microprofile) +target_link_libraries(common PUBLIC fmt microprofile) 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) { |