Boost logo

Boost Users :

Subject: [Boost-users] [variant] Efficiency
From: Olivier Tournaire (olitour_at_[hidden])
Date: 2009-04-04 07:55:23


Hi all,

I need to store in a class an object which type is within a predefined set.
As I would like to avoid the overhead of virtual functions, I am wondering
if variant could help me. Moreover, I would like to know what is the runtime
cost of using such a type (instead of base class pointers), and the cost of
the apply_visitor.

Hope you could help.

Regards,

Olivier



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net