mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 03:32:55 +00:00
Savestates: Fix pair serialization
This commit is contained in:
parent
7e853abc4b
commit
657af10361
@ -503,7 +503,9 @@ public:
|
||||
else if constexpr (TupleAlike<T>)
|
||||
{
|
||||
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&>()))> };
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user