I will have isPseudo_ properly set to identify what type of pointer the union holds, but I want to ignore it in all SomeClass methods except its constructors.
If I do this, there will be times that layoutVertex_ will point to a type of PseudoVertex and I'll treat it like a LayoutVertex.
Again, all methods of LayoutVertex and pseudoVertex are the same.
Eljay Love-Jensen wrote:
Hi Jeff,
Do you mean use the layoutVertex_ the pointer member variable in SomeClass elsewhere?
Or use the layoutVertex_ thing-pointed-to (but is really a pseudoVertex_) elsewhere?
--Eljay