[lug] Can't create union with classes that have copy CTOR's?

D. Stimits stimits at idcomm.com
Fri Mar 22 17:16:15 MST 2002


LittleViggy at alum.manhattan.edu wrote:
> 
> I guess it has something to do with the fact that classes can have VTables, and
> unions take up only as much memory as the largest item?  Hmmm, I'm not sure I
> understand that, since a vtable really does have a set size ay compile time
> (the function pointer is what is determined at run time) or do I have that
> wrong?
> 
> Hmmm, maybe I should invest in Stroustrup's book.  Heh, I've been writing C++
> for almost 6 years now, and never actually read any of his books (even met the
> man too).

It's a very good book. Hard to use to learn C++, but very very good to
help with more advanced programming. It's hard to imagine C++ life
without that and some STL books.

D. Stimits, stimits at idcomm.com

> 
> Viggy
...



More information about the LUG mailing list