wrong about offsetof()
wrong about offsetof()
Posted Mar 28, 2006 5:23 UTC (Tue) by JoeBuck (subscriber, #2330)In reply to: Building the whole Debian archive with GCC 4.1: a summary by butlerm
Parent article: Building the whole Debian archive with GCC 4.1: a summary
ISO C++, and GCC, allow offsetof() for C-style structs (PODs - plain old data types). It does not allow offsetof() for arbitrary C++ classes.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
