|
Boost Users : |
From: Igor R. (igor_rubinov_at_[hidden])
Date: 2008-05-21 04:31:29
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_at_[hidden]> http://lists.boost.org/mailman/listinfo.cgi/boost-users
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net