mirror of https://github.com/PCSX2/pcsx2.git
StateWrapper: Use is_standard_layout+is_trivial instead of is_pod
is_pod is deprecated in C++20.
This commit is contained in:
parent
7e0ce1fa48
commit
7a8d99304a
|
@ -154,7 +154,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Overload for POD types, such as structs.
|
/// Overload for POD types, such as structs.
|
||||||
template <typename T, std::enable_if_t<std::is_pod_v<T>, int> = 0>
|
template <typename T, std::enable_if_t<std::is_standard_layout_v<T> && std::is_trivial_v<T>, int> = 0>
|
||||||
void DoPOD(T* value_ptr)
|
void DoPOD(T* value_ptr)
|
||||||
{
|
{
|
||||||
if (m_mode == Mode::Read)
|
if (m_mode == Mode::Read)
|
||||||
|
|
Loading…
Reference in New Issue