
21 Apr
2009
21 Apr
'09
7:21 a.m.
there is great disadvantage of variant in performance terms. One can't
create instance of variant with proper type inside without calling
copy costructor. Even if you want to create default constructed
instance of a class, you need to call copy costructor. It's very bad
for complex classes.
On Sat, Apr 4, 2009 at 8:21 PM, Olivier Tournaire
Thank you Steven,
On Sat, Apr 4, 2009 at 4:41 PM, Steven Watanabe
wrote: AMDG The cost is apply_visitor is approximately that of a switch statement.
Suppose I have 2 variant
. Is there something to help implementing a dispatcher ? Regards,
Oivier
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users