What if I have this:
union{ vector intVec ; vector floatVec ; vector doubleVec ; } ;
Of cours
You might want to have a look at Boost.Variant which can contain a single value of varying types.