Re: question about anonymous union usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux