StateWrapper: Use is_standard_layout+is_trivial instead of is_pod

is_pod is deprecated in C++20.
This commit is contained in:
Stenzek authored and Connor McLaughlin committed 2023-08-27 01:08:56 +10:00
1 parent 7e0ce1fa48
commit 7a8d99304a
1 file changed
+1 -1
+1 -1
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)