1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 22:30:05 +02:00

Try another definition of Maybe for xcode 5.1

This commit is contained in:
Paul Licameli 2016-03-03 01:26:02 -05:00
parent 1ffd9e4682
commit 3afcde1a70

View File

@ -172,10 +172,17 @@ private:
} }
// Data // Data
#if 0
typename ::std::aligned_storage< typename ::std::aligned_storage<
sizeof(X) sizeof(X)
// , alignof(X) // Not here yet in all compilers // , alignof(X) // Not here yet in all compilers
>::type storage{}; >::type storage{};
#else
union {
double d;
char storage[sizeof(X)];
};
#endif
X* pp{ nullptr }; X* pp{ nullptr };
}; };