You moved a function pointer but didn't move the
std::function
parameter, looks like a typo.
std::function
parameter, looks like a typo.