Remove select1st (GNU extension), replace it by a call to boost::bind
parent
0e4bb3f8e9
commit
e4526944a9
|
@ -21,15 +21,11 @@
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
// For select1st()
|
|
||||||
#ifdef __GNUC__
|
|
||||||
# include <ext/functional>
|
|
||||||
using namespace __gnu_cxx;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
|
||||||
#include "ExprNode.hh"
|
#include "ExprNode.hh"
|
||||||
#include "DataTree.hh"
|
#include "DataTree.hh"
|
||||||
#include "ModFile.hh"
|
#include "ModFile.hh"
|
||||||
|
@ -110,7 +106,7 @@ ExprNode::collectModelLocalVariables(set<int> &result) const
|
||||||
set<pair<int, int> > symb_ids;
|
set<pair<int, int> > symb_ids;
|
||||||
collectVariables(eModelLocalVariable, symb_ids);
|
collectVariables(eModelLocalVariable, symb_ids);
|
||||||
transform(symb_ids.begin(), symb_ids.end(), inserter(result, result.begin()),
|
transform(symb_ids.begin(), symb_ids.end(), inserter(result, result.begin()),
|
||||||
select1st<pair<int, int> >());
|
boost::bind(&pair<int,int>::first,_1));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue