Use sizeof(void*) instead of std::max_align_t since old C++11 compilers like gcc-4.8 don't suppor it.

This commit is contained in:
Ion Gaztañaga
2026-06-16 00:48:15 +02:00
parent a594010282
commit f9c282111d
+1 -1
View File
@@ -29,7 +29,7 @@ int main() { return 0; }
#pragma warning(disable:4324) /* structure padded due to alignment specifier */
#endif
struct alignas(4 * alignof(std::max_align_t))
struct alignas(4 * sizeof(void*))
new_extended_aligned_object
{
new_extended_aligned_object(int n_): n{n_} { check_alignment(); }