Open timuraudio opened 2 years ago
iceoryx also implements this: https://github.com/eclipse-iceoryx/iceoryx/blob/d3f97cb/iceoryx_hoofs/functional/include/iox/function.hpp#L26
In fact, all of iceoryx's cxx building block data structures may be of interest: https://iceoryx.io/v2.0.0/advanced/iceoryx_hoofs/#cxx.
I remember seeing an implementation of this made by colugo, might be useful https://github.com/colugomusic/clog/blob/master/include/clog/small_function.hpp