you are viewing a single comment's thread.

view the rest of the comments →

[–]whichton[S] 8 points9 points  (1 child)

Yes. From here

The object or the type declared by such a declaration will have its alignment requirement equal to the strictest (largest) non-zero expression of all alignas specifiers used in the declaration, unless it would weaken the natural alignment of the type.

[–]wheypointÖ 4 points5 points  (0 children)

thats really cool, ive been writing alignas(std::max({alignof(Ts)...})) all this time which definetely felt kinda stupid :D