From c0fb5e876d83abae86d64a19d4acfb9867ed7dc1 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 13 Oct 2022 11:01:28 -0400 Subject: result: enforce reference check specialization --- src/core/hle/result.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/hle/result.h b/src/core/hle/result.h index e20e0bfee..d67e68bae 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -402,9 +402,8 @@ constexpr bool EvaluateResultFailure(const Result& r) { } template -constexpr void UpdateCurrentResultReference(T result_reference, Result result) { - ASSERT(false); -} +constexpr void UpdateCurrentResultReference(T result_reference, Result result) = delete; +// Intentionally not defined template <> constexpr void UpdateCurrentResultReference(Result& result_reference, Result result) { @@ -412,7 +411,7 @@ constexpr void UpdateCurrentResultReference(Result& result_reference, R } template <> -constexpr void UpdateCurrentResultReference(Result result_reference, Result result) {} +constexpr void UpdateCurrentResultReference(Result result_reference, Result result) {} } // namespace ResultImpl #define DECLARE_CURRENT_RESULT_REFERENCE_AND_STORAGE(COUNTER_VALUE) \ -- cgit v1.2.3