1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Replace usage of deprecated type std::aligned_storage_t

This commit is contained in:
attila 2024-07-10 19:26:14 +02:00
parent 95e71b10b0
commit 9ad70308a8

View file

@ -4820,7 +4820,7 @@ private:
CombineRgn (rgn, rgn, clipRgn, RGN_AND);
DeleteObject (clipRgn);
std::aligned_storage_t<8192, alignof (RGNDATA)> rgnData;
alignas (RGNDATA) std::byte rgnData[8192];
const DWORD res = GetRegionData (rgn, sizeof (rgnData), (RGNDATA*) &rgnData);
if (res > 0 && res <= sizeof (rgnData))