1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CriticalSection: Replace std::aligned_storage_t to avoid C++23 warning

This commit is contained in:
attila 2024-07-10 18:58:05 +02:00
parent 3f1e945b78
commit b7a2c1d3bf

View file

@ -118,9 +118,9 @@ private:
// a block of memory here that's big enough to be used internally as a windows
// CRITICAL_SECTION structure.
#if JUCE_64BIT
std::aligned_storage_t<44, 8> lock;
alignas (8) std::byte lock[44];
#else
std::aligned_storage_t<24, 8> lock;
alignas (8) std::byte lock[24];
#endif
#else
mutable pthread_mutex_t lock;