Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
e4526944
Commit
e4526944
authored
Nov 05, 2013
by
Sébastien Villemot
Browse files
Remove select1st (GNU extension), replace it by a call to boost::bind
parent
0e4bb3f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ExprNode.cc
View file @
e4526944
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment