X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/95ffb98a8d08ef20672d6ef91ea8fb4320c5ea85..c769579a8be568370d2657059486574371e914c2:/cost_func.cpp?ds=inline diff --git a/cost_func.cpp b/cost_func.cpp index 12c20f6..d6cba8c 100644 --- a/cost_func.cpp +++ b/cost_func.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include @@ -30,13 +30,12 @@ cost_func::~cost_func() double cost_func::operator()(double amount) const { - using std::tr1::bind; - using std::tr1::placeholders::_1; - using std::tr1::placeholders::_2; + using std::placeholders::_1; + using std::placeholders::_2; return std::accumulate(++factors.begin(), factors.end(), factors.front(), - bind(std::plus(), - bind(std::multiplies(), amount, _1), - _2)); + std::bind(std::plus(), + std::bind(std::multiplies(), + amount, _1), _2)); } std::string cost_func::to_string()