Hans Aberg ha scritto:
On 24 May 2009, at 16:13, Luca wrote:
C++ dont allow unions containing c++ classes
I think you're wrong. The size of a pointer is always known at
compile time, pair* it; is a pointer and not an
object. The size is 4 bytes using a 32 bit OS.
The problem is what the C
On 25 May 2009, at 22:11, Luca wrote:
I successfully compiled a union containing pair*
it; using bison 2.4.1.
I think you can use pointers to C++ class inside a union without any
trouble. Just try it.
Checking what the compiler accepts is a good way to produce non-
standard source code -