Boost.Any vs. Boost.Variant
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.)
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.)
If you read the boost::any documentation they provide the source for the idea: http://www.two-sdg.demon.co.uk/curbralan/papers/ValuedConversions.pdf It’s basic information hiding, an essential C++ skill to have. Learn it! Since the highest voted answer here is totally incorrect, and I have my doubts that people will actually go look at the source to verify that fact, here’s a … Read more