2016-03-14 15:28 GMT-03:00 Steven Watanabe
On 03/14/2016 12:58 AM, Vinícius dos Santos Oliveira wrote:
Knowing this is Boost and Boost is about serious C++ users I know I must
concerned about performance. Therefore, many may not like the std::function<> approach. It can imply some hidden allocation that you
be pay
even if the handler is not going to give up on the route.
[func.wrap.func.con]: "[Note: Implementations are encouraged to avoid the use of dynamically allocated memory for small callable objects, for example, where f’s target is an object holding only a pointer or reference to an object and a member function pointer. — end note]"
I'm aware of that, but my solution is still cheaper. I think my solution end up being "cleaner" too (although is not complete yet and there is lots of open questions still). -- Vinícius dos Santos Oliveira https://vinipsmaker.github.io/