StateWrapper: Use is_standard_layout+is_trivial instead of is_pod

is_pod is deprecated in C++20.
This commit is contained in:
Stenzek 2023-08-26 22:53:50 +10:00 committed by Connor McLaughlin
parent 7e0ce1fa48
commit 7a8d99304a
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public:
}
/// 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)
{
if (m_mode == Mode::Read)