C++ 3.4.5 packed reference warning
Nathan Sidwell
nathan@codesourcery.com
Wed Dec 7 19:28:00 GMT 2005
Steven L. Zook wrote:
> I guess what I don't understand is why struct A isn't POD. A reference
> to something is basically just a pointer. It has no alignment
> restrictions that a pointer wouldn't.
a reference type is not a pod type because the language says so.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list