3 ms·
static_assert() is not a preprocessor thing, so you can use sizeof() there without trouble. It does have other limitations: it’s syntactically a declaration whi
by fanf2 3y ago
static_assert() is not a preprocessor thing, so you can use sizeof() there without trouble. It does have other limitations: it’s syntactically a declaration which makes it painful to use in macros without wrapping it in the GNU C statement-expression extension.