mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
[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:
@ -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
|
||||
|
Reference in New Issue
Block a user