Compiler output
prog.cpp: In function ‘int main()’:
prog.cpp:125:11: error: reference to ‘function’ is ambiguous
prog.cpp:104:8: error: candidates are: double function(double, double, double)
In file included from /usr/include/c++/4.7/bits/stl_algo.h:68:0,
from /usr/include/c++/4.7/algorithm:63,
from prog.cpp:66:
/usr/include/c++/4.7/functional:1720:11: error: template<class _Signature> class std::function
prog.cpp:130:12: error: reference to ‘function’ is ambiguous
prog.cpp:104:8: error: candidates are: double function(double, double, double)
In file included from /usr/include/c++/4.7/bits/stl_algo.h:68:0,
from /usr/include/c++/4.7/algorithm:63,
from prog.cpp:66:
/usr/include/c++/4.7/functional:1720:11: error: template<class _Signature> class std::function
prog.cpp:139:19: error: reference to ‘function’ is ambiguous
prog.cpp:104:8: error: candidates are: double function(double, double, double)
In file included from /usr/include/c++/4.7/bits/stl_algo.h:68:0,
from /usr/include/c++/4.7/algorithm:63,
from prog.cpp:66:
/usr/include/c++/4.7/functional:1720:11: error: template<class _Signature> class std::function
prog.cpp:139:53: error: reference to ‘function’ is ambiguous
prog.cpp:104:8: error: candidates are: double function(double, double, double)
In file included from /usr/include/c++/4.7/bits/stl_algo.h:68:0,
from /usr/include/c++/4.7/algorithm:63,
from prog.cpp:66:
/usr/include/c++/4.7/functional:1720:11: error: template<class _Signature> class std::function