0_0_16585221_13759.cpp: In function 'double simpson(double, double)':
0_0_16585221_13759.cpp:49:13: error: reference to 'function' is ambiguous
return (function (l ) + 4 * function ( (l + r) / 2.0 ) + function (r) ) * (r - l) / 6.0;
^
0_0_16585221_13759.cpp:44:8: note: candidates are: double function(double)
double function (double x) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_16585221_13759.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
0_0_16585221_13759.cpp:49:33: error: reference to 'function' is ambiguous
return (function (l ) + 4 * function ( (l + r) / 2.0 ) + function (r) ) * (r - l) / 6.0;
^
0_0_16585221_13759.cpp:44:8: note: candidates are: double function(double)
double function (double x) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_16585221_13759.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
0_0_16585221_13759.cpp:49:62: error: reference to 'function' is ambiguous
return (function (l ) + 4 * function ( (l + r) / 2.0 ) + function (r) ) * (r - l) / 6.0;
^
0_0_16585221_13759.cpp:44:8: note: candidates are: double function(double)
double function (double x) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_16585221_13759.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
|