Files
2025-10-25 03:02:53 +03:00

19 lines
781 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diff.offsetof]
# Annex C (informative) Compatibility [[diff]](./#diff)
## C.8 C standard library [[diff.library]](diff.library#diff.offsetof)
### C.8.5 Modifications to behavior [[diff.mods.to.behavior]](diff.mods.to.behavior#diff.offsetof)
#### C.8.5.2 Macro offsetof(*type*, *member-designator*) [diff.offsetof]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3829)
The macro offsetof, defined in[<cstddef>](cstddef.syn#header:%3ccstddef%3e "17.2.1Header <cstddef> synopsis[cstddef.syn]"),
accepts a restricted set of *type* arguments in C++[.](#1.sentence-1)
Subclause [[support.types.layout]](support.types.layout "17.2.4Sizes, alignments, and offsets") describes the change[.](#1.sentence-2)