diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-21 02:34:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-21 02:34:12 +0100 |
commit | e8ff8a66b0980399a5ad9d54bba06a88b423ba62 (patch) | |
tree | 9baf1ca48b65e63ffac2029734e9646c0a514601 /src/common | |
parent | Merge pull request #2224 from lioncash/opus (diff) | |
parent | common/thread_queue_list: Remove unnecessary dependency on boost (diff) | |
download | yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.gz yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.bz2 yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.lz yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.xz yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.tar.zst yuzu-e8ff8a66b0980399a5ad9d54bba06a88b423ba62.zip |
Diffstat (limited to 'src/common')
-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 43ae8a9e7..fe6f78356 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -134,4 +134,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) { |