diff --git a/examples/exRootFinder.cpp b/examples/exRootFinder.cpp index 0ff1133..181352a 100644 --- a/examples/exRootFinder.cpp +++ b/examples/exRootFinder.cpp @@ -7,8 +7,8 @@ using namespace Latan; int main(void) { constexpr double a = 1., b = 10.; - DoubleFunction f1([a](const double *x){return a*(1.-x[0]);}, 2); - DoubleFunction f2([b](const double *x){return b*(x[1]-x[0]*x[0]);}, 2); + DoubleFunction f1([](const double *x){return a*(1.-x[0]);}, 2); + DoubleFunction f2([](const double *x){return b*(x[1]-x[0]*x[0]);}, 2); vector system = {&f1, &f2}; GslHybridRootFinder solve; DVec init(2), x; diff --git a/lib/MatSample.hpp b/lib/MatSample.hpp index 5973b31..0678cca 100644 --- a/lib/MatSample.hpp +++ b/lib/MatSample.hpp @@ -228,7 +228,7 @@ Index MatSample::BlockTemplate::getNCol(void) const // assignement operators /////////////////////////////////////////////////////// template template -MatSample::BlockTemplate & +typename MatSample::template BlockTemplate & MatSample::BlockTemplate::operator=(const S &sample) { FOR_STAT_ARRAY(sample_, s) @@ -241,7 +241,7 @@ MatSample::BlockTemplate::operator=(const S &sample) template template -MatSample::BlockTemplate & +typename MatSample::template BlockTemplate & MatSample::BlockTemplate::operator=(const S &&sample) { *this = sample;