Hi,
 
Just a wonder: why did you choose to use boost::any rather than boost::variant?
In case of boost::variant you could use static visiting instead of checking the types in runtime "to make the different actions for different value types" .
 
> I want to use boost::any in a project where I want store different
> values or pointers.
> What is the fastest solution to make the different actions for different
> value types? Using the type() member function?
> Is it also possible to detect if the value is a pointer or a value?
>
> Best regards
> Hansjörg
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users



Get news, entertainment and everything you care about at Live.com. Check it out!