When std::bind is used, it requires inclusion of <functional> header. This was not mandatory with earlier versions of g++ (4.x), may be because they had experimental support for c++11.