[windows] Add workaround(HACK) for vs2015 implementating a conformant std::is_trivially_copyable...

see https://github.com/dolphin-emu/dolphin/pull/2218
This commit is contained in:
Shawn Hoffman 2015-04-29 22:19:04 +00:00
parent bea18eedc4
commit 66a3951c3b

View File

@ -33,11 +33,9 @@
#define IsTriviallyCopyable(T) std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
#elif __GNUC__
#define IsTriviallyCopyable(T) std::has_trivial_copy_constructor<T>::value
#elif _MSC_VER >= 1800
// work around bug
#define IsTriviallyCopyable(T) (std::is_trivially_copyable<T>::value || std::is_pod<T>::value)
#elif defined(_MSC_VER)
#define IsTriviallyCopyable(T) std::has_trivial_copy<T>::value
#elif _MSC_VER
// (shuffle2) see https://github.com/dolphin-emu/dolphin/pull/2218
#define IsTriviallyCopyable(T) 1
#else
#error No version of is_trivially_copyable
#endif