The lambda ended up having no captures, so this works.
T *object;
private:
Loader *obj_loader;
- std::function<void(Collection &, const std::string &, T *)> store_func;
+ void (*store_func)(Collection &, const std::string &, T *);
static ActionMap shared_actions;
DynamicObjectLoader<T, C>::DynamicObjectLoader(Collection *c):
coll(c),
object(nullptr),
- obj_loader(nullptr)
+ obj_loader(nullptr),
+ store_func(nullptr)
{
set_actions(shared_actions);
}