function pointers and anys

19 Feb
2010
19 Feb
'10
6:45 p.m.
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.

25 Feb
25 Feb
6:49 p.m.
Thanks.
On 19 February 2010 22:48, Ryan Gallagher
Alan Tennant
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
5533
Age (days ago)
5539
Last active (days ago)
2 comments
2 participants
participants (2)
-
Alan Tennant
-
Ryan Gallagher