Boost.Any vs Boost.Variant

I'm having trouble deciding between Boost.Any and Boost.Variant.
When should you use each of them?

What are the advantages and disadvantages of each?

Basically I want to store some states from external sources.

+48
c ++ boost boost-variant boost-any
Sep 02 '09 at 8:49
source share
1 answer

Have you looked at the comparison in the options library?

(Not sure which states are from external sources, so it's hard to say which suits you best.)

+40
02 Sep '09 at 8:54
source share



All Articles