boost::function function pointer to parameters?
Posted
by high6
on Stack Overflow
See other posts from Stack Overflow
or by high6
Published on 2010-06-12T20:17:49Z
Indexed on
2010/06/12
20:22 UTC
Read the original article
Hit count: 191
How does boost::function take a function pointer and get parameters from it? I want wrap a function pointer so that it can be validated before being called. And it would be nice to be able to call it like boost::function is with the () operator and not having to access the function pointer member.
Wrapper func; func(5); //Yes :D func.Ptr(5) //Easy to do, but not as nice looking
© Stack Overflow or respective owner