diff options
author | Mai <mathew1800@gmail.com> | 2022-10-13 21:54:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 21:54:10 +0200 |
commit | e37d00332c2d23502d265fc5428722c2b2144d02 (patch) | |
tree | cf0736a998c638af03cb5d70cb277eb63ad04dc8 | |
parent | Merge pull request #9066 from Morph1984/fix-stretch-to-window (diff) | |
parent | result: enforce reference check specialization (diff) | |
download | yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar.gz yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar.bz2 yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar.lz yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar.xz yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.tar.zst yuzu-e37d00332c2d23502d265fc5428722c2b2144d02.zip |
-rw-r--r-- | src/core/hle/result.h | 7 |
1 files 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 <typename T> -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& result_reference, Result result) { @@ -412,7 +411,7 @@ constexpr void UpdateCurrentResultReference<Result&>(Result& result_reference, R } template <> -constexpr void UpdateCurrentResultReference<Result>(Result result_reference, Result result) {} +constexpr void UpdateCurrentResultReference<const Result>(Result result_reference, Result result) {} } // namespace ResultImpl #define DECLARE_CURRENT_RESULT_REFERENCE_AND_STORAGE(COUNTER_VALUE) \ |