#pragma warning(disable:4345) #include #include #include int main(int, char **) { typedef boost::variant< boost::blank, int, std::vector* > thetype; thetype x, y; x = new std::vector(); x.swap(y); return 0; }