-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Dear Matthew Rodusek, THANKS for writing such an amazing blog about how to creating delegate type in c++. It really helps a lot. I'm trying to create a timer with a function pointer. I want it to do something like this.
void Task(int a){}
Timer<&task,1000> timer;
However, after mimic the delegate type, the best I can do is something like this.
Timer<decltype(Task)> timer{1000};
timer.bind<&Task>();
I'm wondering if there's something that I can do to bind the function pointer in constructor in C++11. I'm really hoping to get some advice from a c++ expert like you. THANKS again for your fascinating post.
Metadata
Metadata
Assignees
Labels
No labels