Top "Boost-any" questions

Boost.

How do boost::variant and boost::any work?

How do variant and any from the boost library work internally? In a project I am working on, I currently …

c++ unions boost-variant boost-any
Boost.Any vs. Boost.Variant

I'm having trouble choosing between Boost.Any and Boost.Variant. When should I use each one? What are the advantages …

c++ boost boost-variant boost-any
Does C++11 standard provide something like boost::any?

for example boost::function is moved almost entirely to std::function, the same is with boost::shared_ptr But I …

c++ c++11 boost boost-any stdany
how to use boost::any_cast to cast to base types?

I am using boost::any to have polymorphic types, I need to be able to cast an object to its …

c++ boost casting boost-any
How to print boost::any to a stream?

I have a Map std::map<std::string, boost::any>, which comes from the boost::program_options package. …

c++ boost printing boost-any
Compare boost::any contents

I am using a container to hold a list of pointers to anything: struct Example { std::vector<boost::any&…

c++ boost boost-any