mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Remove IsTriviallyCopyable hack for VS
This commit is contained in:
@ -41,14 +41,11 @@
|
|||||||
|
|
||||||
#if (__has_feature(is_trivially_copyable) && \
|
#if (__has_feature(is_trivially_copyable) && \
|
||||||
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__))) || \
|
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__))) || \
|
||||||
(defined(__GNUC__) && __GNUC__ >= 5)
|
(defined(__GNUC__) && __GNUC__ >= 5) || defined(_MSC_VER)
|
||||||
#define IsTriviallyCopyable(T) \
|
#define IsTriviallyCopyable(T) \
|
||||||
std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
|
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
|
|
||||||
// (shuffle2) see https://github.com/dolphin-emu/dolphin/pull/2218
|
|
||||||
#define IsTriviallyCopyable(T) 1
|
|
||||||
#else
|
#else
|
||||||
#error No version of is_trivially_copyable
|
#error No version of is_trivially_copyable
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user