
First I wanted to use boost::variant. It would be the best solution, i think. The problem is that I have at least the datatypes: unsigned char char unsigned short short unsigned int int unsigned long long long long double float string wstring and maybe some pointer types and there is the problem. I think the variant datatype can use only 10 different parameters. Isn't it? Best regards Hansjörg Igor R. schrieb:
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! <http://www.live.com/getstarted.aspx >
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users