From 3afcde1a70674367d11f791723146d7f52bb4acd Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 3 Mar 2016 01:26:02 -0500 Subject: [PATCH] Try another definition of Maybe for xcode 5.1 --- src/MemoryX.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/MemoryX.h b/src/MemoryX.h index ae068fcce..ba42783c0 100644 --- a/src/MemoryX.h +++ b/src/MemoryX.h @@ -172,10 +172,17 @@ private: } // Data +#if 0 typename ::std::aligned_storage< sizeof(X) // , alignof(X) // Not here yet in all compilers >::type storage{}; +#else + union { + double d; + char storage[sizeof(X)]; + }; +#endif X* pp{ nullptr }; };