12 Jul
2005
12 Jul
'05
9:07 a.m.
From: Felipe Magno de Almeida [mailto:felipe.m.almeida@gmail.com]
What I wanted is a vector of variant
and I dont want object1 and object2 to be copied because it is expensive. But Im not figuring out how to do this... tried boost::ref either with no success... :/
Boost.Smart_ptr (http://www.boost.org/libs/smart_ptr/smart_ptr.htm) can
help: use boost::shared_ptr, which is a reference-counted smart pointer.
typedef boost::variant