TITLE: Unions and objects PROBLEM: mben5180@seaotter.micro.umn.edu (Michael Bendickson) I am having trouble in the declaration of a heavily inherited class -- I want to use several other classes, one of which involves a union. I want also to have a simple default constructor for a class like: Btree foo() { Node ptr; TID sector; union { leaf edge; internal sector; } } RESPONSE: steve@taumet.com (Steve Clamage), 15 Feb 93 No object of a class with a constructor or destructor or user-defined assignment operator can be a member of a union. (ARM 9.5) You can use instead a union of pointers, or a simple pointer to a common base class.