|
|
|
|
|
by amluto
139 days ago
|
|
> and why the correct answer is what it is is critically important to that line of code working correctly. > but in the rare case you need code like that be glad C++ has you covered I strongly disagree. alignof(buf) works correctly but is a GCC extension. alignof(decltype(buf)) is 1, because alignas is a giant kludge instead of a reasonable feature. C++ only barely has me covered here. |
|