diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-10-28 02:52:43 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-10-28 03:07:18 -0400 |
commit | 1ff9ad4e7c5bee8081052f46b1acfb109731313b (patch) | |
tree | ab7470ed949b37854869b2a44488c2c9d7144871 /src/core/hle/result.h | |
parent | 3c8c17be4df4e1ec940de2746025626315a7f475 (diff) |
hle/result: Remove cv-qualifiers from Arg in MakeResult
This removes the const qualification for types when MakeResult(arg) is used in a const member function, allowing for automatic deduction and removing the need to manually specify the non-const type as the template argument.
Diffstat (limited to 'src/core/hle/result.h')
-rw-r--r-- | src/core/hle/result.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index a755008d5..30025c790 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)); } /** |