[omniORB] Corba union waste of space?

Teemu Torma teemu at torma.org
Thu Dec 4 22:13:57 GMT 2008


On Thursday 04 December 2008 19:27:11 Bruce Visscher wrote:
> In C++ I find that I only occasionally wish I had some kind of
> discriminated union type.

Boost.Variant is pretty much that.  Internally it has a space for the largest 
type and uses placement new to construct the active member there.  

Teemu



More information about the omniORB-list mailing list