mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Savestates: Fix pair serialization
This commit is contained in:
parent
7e853abc4b
commit
657af10361
1 changed files with 3 additions and 1 deletions
|
@ -503,7 +503,9 @@ public:
|
||||||
else if constexpr (TupleAlike<T>)
|
else if constexpr (TupleAlike<T>)
|
||||||
{
|
{
|
||||||
static_assert(std::tuple_size_v<type> == 2, "Unimplemented tuple serialization!");
|
static_assert(std::tuple_size_v<type> == 2, "Unimplemented tuple serialization!");
|
||||||
return type{ operator std::remove_cvref_t<decltype(std::get<0>(std::declval<type&>()))>
|
|
||||||
|
auto first = operator std::remove_cvref_t<decltype(std::get<0>(std::declval<type&>()))>();
|
||||||
|
return type{ std::move(first)
|
||||||
, operator std::remove_cvref_t<decltype(std::get<1>(std::declval<type&>()))> };
|
, operator std::remove_cvref_t<decltype(std::get<1>(std::declval<type&>()))> };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue