This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about anonymous union usage


The later.
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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]