Merge pull request #2459 from degasus/master
Common: Fix IsTriviallyCopyable macro for GCC 5
This commit is contained in:
commit
85e706b4ec
|
@ -29,7 +29,7 @@
|
|||
#include "Common/Flag.h"
|
||||
|
||||
// ewww
|
||||
#if _LIBCPP_VERSION
|
||||
#if _LIBCPP_VERSION || __GNUC__ >= 5
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue