From b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Feb 2021 15:11:19 -0500 Subject: k_priority_queue: Unfold several declval usages Given these are only used as function existence checks, we can simplify some usages of declval, given they aren't particularly useful here. Reduces a few template instantiations, which at most reduces compile times a tiny bit. --- src/core/hle/kernel/k_priority_queue.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h index 103dafd48..4aa669d95 100644 --- a/src/core/hle/kernel/k_priority_queue.h +++ b/src/core/hle/kernel/k_priority_queue.h @@ -24,11 +24,11 @@ template concept KPriorityQueueAffinityMask = !std::is_reference_v && requires(T & t) { { t.GetAffinityMask() } ->Common::ConvertibleTo; - {t.SetAffinityMask(std::declval())}; + {t.SetAffinityMask(0)}; - { t.GetAffinity(std::declval()) } + { t.GetAffinity(0) } ->std::same_as; - {t.SetAffinity(std::declval(), std::declval())}; + {t.SetAffinity(0, false)}; {t.SetAll()}; }; @@ -42,11 +42,11 @@ concept KPriorityQueueMember = !std::is_reference_v && requires(T & t) { ->std::same_as; { (typename T::QueueEntry()).GetPrev() } ->std::same_as; - { t.GetPriorityQueueEntry(std::declval()) } + { t.GetPriorityQueueEntry(0) } ->std::same_as; {t.GetAffinityMask()}; - { typename std::remove_cvref::type() } + { std::remove_cvref_t() } ->KPriorityQueueAffinityMask; { t.GetActiveCore() } -- cgit v1.2.3