How to pass function reference into arguments
- by Ockonal
Hi, I'm using boost::function for making function-references:
typedef boost::function<void (SomeClass &handle)> Ref;
someFunc(Ref &pointer) {/*...*/}
void Foo(SomeClass &handle) {/*...*/}
What is the best way to pass Foo into the someFunc?
I tried something like:
someFunc(Ref(Foo));