mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00: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
1 changed files with 3 additions and 5 deletions
|
@ -33,11 +33,9 @@
|
||||||
#define IsTriviallyCopyable(T) std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
|
#define IsTriviallyCopyable(T) std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
|
||||||
#elif __GNUC__
|
#elif __GNUC__
|
||||||
#define IsTriviallyCopyable(T) std::has_trivial_copy_constructor<T>::value
|
#define IsTriviallyCopyable(T) std::has_trivial_copy_constructor<T>::value
|
||||||
#elif _MSC_VER >= 1800
|
#elif _MSC_VER
|
||||||
// work around bug
|
// (shuffle2) see https://github.com/dolphin-emu/dolphin/pull/2218
|
||||||
#define IsTriviallyCopyable(T) (std::is_trivially_copyable<T>::value || std::is_pod<T>::value)
|
#define IsTriviallyCopyable(T) 1
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
#define IsTriviallyCopyable(T) std::has_trivial_copy<T>::value
|
|
||||||
#else
|
#else
|
||||||
#error No version of is_trivially_copyable
|
#error No version of is_trivially_copyable
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue