diff options
| author | 2021-10-29 21:35:32 -0700 | |
|---|---|---|
| committer | 2021-10-29 21:35:32 -0700 | |
| commit | 92159b210eebf8733be0e21221f0cb20980dd95f (patch) | |
| tree | 3eb10ca04b7305cff7cafcf82b76f1272821bfce /src | |
| parent | Merge pull request #7241 from Morph1984/resultval-move-assignment (diff) | |
| parent | hle/result: Remove cv-qualifiers from Arg in MakeResult (diff) | |
| download | yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.gz yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.xz yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.zip | |
Merge pull request #7240 from Morph1984/resultval-remove-cv
hle/result: Remove cv-qualifiers from Arg in MakeResult
Diffstat (limited to 'src')
| -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 00fe70998..2c6b24848 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h | |||
| @@ -349,8 +349,8 @@ template <typename T, typename... Args> | |||
| 349 | * copy or move constructing. | 349 | * copy or move constructing. |
| 350 | */ | 350 | */ |
| 351 | template <typename Arg> | 351 | template <typename Arg> |
| 352 | [[nodiscard]] ResultVal<std::remove_reference_t<Arg>> MakeResult(Arg&& arg) { | 352 | [[nodiscard]] ResultVal<std::remove_cvref_t<Arg>> MakeResult(Arg&& arg) { |
| 353 | return ResultVal<std::remove_reference_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg)); | 353 | return ResultVal<std::remove_cvref_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg)); |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | /** | 356 | /** |