List of functions references

Posted by Ockonal on Stack Overflow See other posts from Stack Overflow or by Ockonal
Published on 2010-06-01T12:47:59Z Indexed on 2010/06/01 12:53 UTC
Read the original article Hit count: 246

Filed under:
|
|
|
|

Hello, I'm using boost::function for making references to the functions. Can I make a list of references? For example:

boost::function<bool (Entity &handle)> behaviorRef;

And I need in a list of such pointers. For example:

std::vector<behaviorRef> listPointers;

Of course it's wrong code due to behaviorRef isn't a type.

So the question is: how can I store a list of pointers for the function?

© Stack Overflow or respective owner

Related posts about c++

Related posts about list