assignment operators for union member classes

John Love-Jensen eljay@adobe.com
Tue Feb 19 15:23:00 GMT 2008


Hi Mike,

> Does anyone know why asignment operators are not allowed for union class
> members ?

Yes, I know why.

Because the assignment operator won't be executed.

(Besides that, a non-POD / non-aggregate object violates the constraints of
what can be in a union.)

HTH,
--Eljay



More information about the Gcc-help mailing list