views:

1873

answers:

1

Hello,
I'm having trouble choosing between Boost.Any and Boost.Variant.
When should I use each one?
What are the advantages and disadvantages of each?
I am basically looking to store some states from external sources.

Thanks,
Omer

+4  A: 

Have you looked at the comparison in the variant library already?

(Not sure what states from external sources are, so it's kind of hard to say what's more appropriate for you.)

drby
Actually I haven't seen that before.But what is the right question to ask to help me choose?
the_drow
You would have to answer that yourself - which of the features is critical for you?
1800 INFORMATION
Ease of use, no maintainability headaches, the least overhead possible. I can estimate what my types are going to be but what if I need to add yet another one tomorrow?
the_drow
@Hackingwords: Assume it's some kind of Driver.
the_drow