function pointers and anys
I created a pointer to a function, I am able to call the function though the pointer as well as move the pointer, as I would expect. I put it into a boost::any. How do I get the pointer out of the any so that I can call it? I'm having difficulty using the any_cast to do it.
Thanks. On 19 February 2010 22:48, Ryan Gallagher <ryan.gallagher@gmail.com> wrote:
Alan Tennant <alan2here <at> gmail.com> writes:
I created a pointer to a function, I am able to call the function though the pointer as well as move the pointer, as I would expect. I put it into a boost::any. [snip]
Any reason you're not using Boost.Function?
-Ryan
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Alan Tennant
-
Ryan Gallagher