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