mirror of
https://github.com/boostorg/container.git
synced 2026-07-05 09:40:45 +02:00
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:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user