mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
SaveState: Switch from deprecated is_pod.
This commit is contained in:
1 parent
945288f4b5
commit
3e5d77ab46
1 file changed
+1
-5
@@ -33,11 +33,7 @@ void Do(PointerWrap &p, tm &t);
|
||||
|
||||
// This makes it a compile error if you forget to define DoState() on non-POD.
|
||||
// Which also can be a problem, for example struct tm is non-POD on linux, for whatever reason...
|
||||
#ifdef _MSC_VER
|
||||
template<typename T, bool isPOD = std::is_pod<T>::value, bool isPointer = std::is_pointer<T>::value>
|
||||
#else
|
||||
template<typename T, bool isPOD = __is_pod(T), bool isPointer = std::is_pointer<T>::value>
|
||||
#endif
|
||||
template<typename T, bool isPOD = std::is_standard_layout<T>::value && std::is_trivial<T>::value, bool isPointer = std::is_pointer<T>::value>
|
||||
struct DoHelper_ {
|
||||
static void DoArray(PointerWrap &p, T *x, int count) {
|
||||
for (int i = 0; i < count; ++i)
|
||||
|
||||
Reference in new issue
Block a user