#include<functional>T bisection(T xL, T xR, T epsilon, std::function<T(T)> fx)bisection(0.0, 2.0, 0.001, [](double x){return x*x-2;})bisection.cpp: In function ‘int main()’:
bisection.cpp:24:65: error: no matching fun
这是我的代码:Called function is: bisection_root. Taking first half.Called function is: bisection_root. Taking first half.Result: 0.000000 -0.000000 0.258652
test -0.000000