From 4431b499d0f1fc59b19332ceb428fbca0e9d00b5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Feb 2021 14:54:06 -0500 Subject: [PATCH] k_priority_queue: Resolved reserved identifier An identifier containing a starting underscore followed by a capital letter is reserved by the standard. It's trivial to avoid this by moving the underscore to the end of the identifier. While the likelihood of clashing here being minimal, we can turn a "should not break" scenario into a definitive "will not break" one, so why not?. --- src/core/hle/kernel/k_priority_queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h index 13d628b85a..afaab98126 100644 --- a/src/core/hle/kernel/k_priority_queue.h +++ b/src/core/hle/kernel/k_priority_queue.h @@ -55,7 +55,7 @@ concept KPriorityQueueMember = !std::is_reference_v && requires(T & t) { ->Common::ConvertibleTo; }; -template +template requires KPriorityQueueMember class KPriorityQueue { public: using AffinityMaskType = typename std::remove_cv_t< @@ -65,7 +65,7 @@ public: static_assert(HighestPriority >= 0); static_assert(LowestPriority >= HighestPriority); static constexpr size_t NumPriority = LowestPriority - HighestPriority + 1; - static constexpr size_t NumCores = _NumCores; + static constexpr size_t NumCores = NumCores_; static constexpr bool IsValidCore(s32 core) { return 0 <= core && core < static_cast(NumCores);