mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-25 13:55:28 +00:00
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.
This commit is contained in:
parent
3c8c17be4d
commit
1ff9ad4e7c
|
@ -329,8 +329,8 @@ template <typename T, typename... Args>
|
||||||
* copy or move constructing.
|
* copy or move constructing.
|
||||||
*/
|
*/
|
||||||
template <typename Arg>
|
template <typename Arg>
|
||||||
[[nodiscard]] ResultVal<std::remove_reference_t<Arg>> MakeResult(Arg&& arg) {
|
[[nodiscard]] ResultVal<std::remove_cvref_t<Arg>> MakeResult(Arg&& arg) {
|
||||||
return ResultVal<std::remove_reference_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));
|
return ResultVal<std::remove_cvref_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue