Corey, That is a good suggestion and likely what I will end up doing. I wanted to be able to cast between B and A but the read only storage is more important. Dave On Wed, Apr 9, 2008 at 9:53 PM, corey taylor <corey.taylor@xxxxxxxxx> wrote: > On Wed, Apr 9, 2008 at 6:06 PM, Dave Bender <codehero@xxxxxxxxx> wrote: > > struct B : public A { > > int y; > > }; > > > > > My goal is to incorporate a large set of structs in a DSO (so that > > they reside in the read only section). I don't see why this code > > should not compile. > > Have you considered using composition and then initializing A then y > in your aggregate? > > corey >