From abe44fb063bc22df1e129cea347782c38088615e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 4 Jun 2018 16:51:36 +0200 Subject: [PATCH] Replace the use of boost::bind by a lambda --- src/ExprNode.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 82446ea7..95793bb2 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -24,7 +24,6 @@ #include <cassert> #include <cmath> -#include <boost/bind.hpp> #include <utility> #include "ExprNode.hh" @@ -133,7 +132,7 @@ ExprNode::collectVariables(SymbolType type, set<int> &result) const set<pair<int, int>> symbs_lags; collectDynamicVariables(type, symbs_lags); transform(symbs_lags.begin(), symbs_lags.end(), inserter(result, result.begin()), - boost::bind(&pair<int, int>::first, _1)); + [](auto x) { return x.first; }); } void -- GitLab