From 071dedd492dd828727f87aec4be15a851f5282f1 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 13 Sep 2025 19:05:33 -0500 Subject: [PATCH] VideoCommon/OpcodeDecoding: Replace enable_if with concepts. --- Source/Core/VideoCommon/OpcodeDecoding.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Core/VideoCommon/OpcodeDecoding.h b/Source/Core/VideoCommon/OpcodeDecoding.h index 36a56a0fe27..bf9b94d2180 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.h +++ b/Source/Core/VideoCommon/OpcodeDecoding.h @@ -3,7 +3,7 @@ #pragma once -#include +#include #include "Common/Assert.h" #include "Common/CommonTypes.h" @@ -122,8 +122,8 @@ public: namespace detail { // Main logic; split so that the main RunCommand can call OnCommand with the returned size. -template >> -static DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& callback) +static DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, + std::derived_from auto& callback) { if (available < 1) return 0; @@ -253,8 +253,8 @@ static DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& cal } } // namespace detail -template >> -DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& callback) +DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, + std::derived_from auto& callback) { const u32 size = detail::RunCommand(data, available, callback); if (size > 0) @@ -264,8 +264,8 @@ DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& callback) return size; } -template >> -DOLPHIN_FORCE_INLINE u32 Run(const u8* data, u32 available, T& callback) +DOLPHIN_FORCE_INLINE u32 Run(const u8* data, u32 available, + std::derived_from auto& callback) { u32 size = 0; while (size < available)