1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 14:20:06 +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
#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 };
};