14 Mar
2016
14 Mar
'16
6:28 p.m.
AMDG 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 be concerned about performance. Therefore, many may not like the std::function<> approach. It can imply some hidden allocation that you 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]" In Christ, Steven Watanabe