Using std::function<> for callbacks with C++11