From: Igor R (boost.lists_at_[hidden])
Date: 2020-04-05 16:32:02


> In my project I need a callable type-erasure - just like
> std::function/boost::function, but with a *configurable* small-object
> optimization (I will use it in a context where dynamic allocation is
> highly discouraged, so I'm going to make relatively big "static"
> holder).

FWIW, I've found the following:
https://github.com/WG21-SG14/SG14/blob/master/SG14/inplace_function.h