VERY experimental Nintendo Switch 2 emulator
C++
hle/result: Remove cv-qualifiers from Arg in MakeResult
Morph498f7ed966cf
diff --git a/src/core/hle/result.h b/src/core/hle/result.hindex a755008d59..30025c7909 100644--- a/src/core/hle/result.h+++ b/src/core/hle/result.h@@ -329,8 +329,8 @@ template <typename T, typename... Args>* copy or move constructing.*/template <typename Arg>-[[nodiscard]] ResultVal<std::remove_reference_t<Arg>> MakeResult(Arg&& arg) {- return ResultVal<std::remove_reference_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));+[[nodiscard]] ResultVal<std::remove_cvref_t<Arg>> MakeResult(Arg&& arg) {+ return ResultVal<std::remove_cvref_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));}/**