Namespaces
Variants

Talk:c/types/offsetof

From cppreference.com

is offsetof a preprocessor constant expression?

the standard says integer constant expression (edited this page to match), so no, not in the spec. --Cubbi (talk) 06:51, 14 November 2017 (PST)

Should mention be made here that it is undefined on bitfield structs (as it measures bytes) or leave the bitfield documentation to cover the case there?

Morty Proxy This is a proxified and sanitized view of the page, visit original site.