From 4d5df0d008874221d688c04bee084204ee34f36f Mon Sep 17 00:00:00 2001 From: comex Date: Thu, 27 Mar 2014 23:42:52 -0400 Subject: [PATCH] Fix IsTriviallyCopyable for volatile (fixes Mac build). Between C++11 and C++14, volatile types stopped being trivially copyable. The serializer has no reason to care about this distinction, so tack on remove_volatile. --- Source/Core/Common/ChunkFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 10eb2baa8d..74cf9f475b 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -28,7 +28,7 @@ // ewww #if _LIBCPP_VERSION -#define IsTriviallyCopyable(T) std::is_trivially_copyable::value +#define IsTriviallyCopyable(T) std::is_trivially_copyable::type>::value #elif __GNUC__ #define IsTriviallyCopyable(T) std::has_trivial_copy_constructor::value #elif _MSC_VER >= 1800