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