C++ Logo

std-proposals

Advanced search

[std-proposals] operator alignof

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Sat, 14 May 2022 22:54:09 +0200
Could it be that you think that alignof returns how much the size is off from the set alignment of 8? (8+3) % 8 = 3 To get that you have to use: sizeof(c) % alignof(c) Best, Sebastian -- Sebastian Wittmeier

Received on 2022-05-14 20:54:11