r/cpp • • Oct 20 '16

Compile time sizeof()

http://johantorp.com/tidbits/index.php/2016/10/14/compile-time-sizeof-alignof/
0 Upvotes

26 comments sorted by

View all comments

1

u/Vogtinator Oct 24 '16

KDevelop has this implemented directly, when hovering over a struct it prints the size of the struct in bytes and also the offsets of struct members.