From e4526944a9b988b51d8c80d2b910622e8e9d19e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 5 Nov 2013 18:13:24 +0100
Subject: [PATCH] Remove select1st (GNU extension), replace it by a call to
 boost::bind

---
 preprocessor/ExprNode.cc | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc
index e3a5bad8e8..45247ec1be 100644
--- a/preprocessor/ExprNode.cc
+++ b/preprocessor/ExprNode.cc
@@ -21,15 +21,11 @@
 #include <iterator>
 #include <algorithm>
 
-// For select1st()
-#ifdef __GNUC__
-# include <ext/functional>
-using namespace __gnu_cxx;
-#endif
-
 #include <cassert>
 #include <cmath>
 
+#include <boost/bind.hpp>
+
 #include "ExprNode.hh"
 #include "DataTree.hh"
 #include "ModFile.hh"
@@ -110,7 +106,7 @@ ExprNode::collectModelLocalVariables(set<int> &result) const
   set<pair<int, int> > symb_ids;
   collectVariables(eModelLocalVariable, symb_ids);
   transform(symb_ids.begin(), symb_ids.end(), inserter(result, result.begin()),
-            select1st<pair<int, int> >());
+            boost::bind(&pair<int,int>::first,_1));
 }
 
 void
-- 
GitLab