送交者: steven 于 2005-3-03, 22:43:48:
回答: 3.2.2 由 Duke 于 2005-3-03, 21:33:16:
However, the warning is really something you should pay attention to, because your may rely on some undefined behaviors of compilers. The problem is that the offending classes are not C structure, but rather well defined C++ classes, and the behavior of the offsetof macro is not defined. G++ does what it supposted to do, but you shouldn't rely on it.