Re: (C++) Where does offsetof come from?
Miloslav Trmac <[email protected]> Mon, 10 Jan 2005 08:16:59 +0100
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, On Sun, Jan 09, 2005 at 04:55:58PM -0800, exits funnel wrote: > I'm trying to figure out where the offsetof macro is > defined? <stddef.h>, so <cstddef> for C++ > The only one I can find is > in /usr/include/linux/stddef.h but (A) according to > the output of g++ -v, this directory isn't in my > include path You have apparently not looked in /usr/lib/gcc/... > If anyone could shed some > light upon where sizeof if defined I'd really > appreciate it. sizeof is different from offsetof; sizeof is a built-in operator. Mirek