Boost logo

Boost :

Subject: Re: [boost] [http] Design ideas for a request router
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-03-14 14:28:27


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk