mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
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?.
This commit is contained in:
parent
cde532cc52
commit
53aec1fe2d
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ concept KPriorityQueueMember = !std::is_reference_v<T> && requires(T & t) {
|
||||||
->Common::ConvertibleTo<s32>;
|
->Common::ConvertibleTo<s32>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Member, size_t _NumCores, int LowestPriority, int HighestPriority>
|
template <typename Member, size_t NumCores_, int LowestPriority, int HighestPriority>
|
||||||
requires KPriorityQueueMember<Member> class KPriorityQueue {
|
requires KPriorityQueueMember<Member> class KPriorityQueue {
|
||||||
public:
|
public:
|
||||||
using AffinityMaskType = typename std::remove_cv_t<
|
using AffinityMaskType = typename std::remove_cv_t<
|
||||||
|
@ -65,7 +65,7 @@ public:
|
||||||
static_assert(HighestPriority >= 0);
|
static_assert(HighestPriority >= 0);
|
||||||
static_assert(LowestPriority >= HighestPriority);
|
static_assert(LowestPriority >= HighestPriority);
|
||||||
static constexpr size_t NumPriority = LowestPriority - HighestPriority + 1;
|
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) {
|
static constexpr bool IsValidCore(s32 core) {
|
||||||
return 0 <= core && core < static_cast<s32>(NumCores);
|
return 0 <= core && core < static_cast<s32>(NumCores);
|
||||||
|
|
Loading…
Reference in a new issue