2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #7240 from Morph1984/resultval-remove-cv

hle/result: Remove cv-qualifiers from Arg in MakeResult
This commit is contained in:
bunnei 2021-10-29 21:35:32 -07:00 committed by GitHub
commit 92159b210e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,8 +349,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));
}
/**