Fix build with GCC 7.1
From the Porting to GCC 7[1] page: > Several C++ Standard Library headers have been changed to no longer include > the `<functional>` header. As such, C++ programs that used components defined > in `<functional>` without explicitly including that header will no longer > compile. > Previously components such as std::bind and std::function were > implicitly defined after including unrelated headers such as `<memory>`, > `<future>`, `<mutex>`, and `<regex>`. > Correct code should `#include <functional>` to define them. [1]: https://gcc.gnu.org/gcc-7/porting_to.htmlSigned-off-by: NEddie Ringle <eddie@ringle.io>
Showing
想要评论请 注册 或 登录