mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01: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:
parent
bea18eedc4
commit
66a3951c3b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user