std::functional is no longer used in the core library