mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-10 16:23:05 +00:00
SaveState: Switch from deprecated is_pod.
This commit is contained in:
parent
945288f4b5
commit
3e5d77ab46
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user