It is not functional.h , it is just functional .
#include <functional> //without .h
Note that std::function and std::bind only ship with C ++ 11. Therefore, you may need to update your compiler if you have not already done so.
Alternatively, compile your code with the -std=c++11 option:
$ g++ -std=c++11 file.cpp
This should work if you updated your compiler. If your compiler is a bit outdated, you can also try -std=c++0x .
Nawaz
source share