Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
preprocessor
Commits
1e219044
Verified
Commit
1e219044
authored
Mar 11, 2019
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use emplace_back instead of push_back
parent
d9f7ac4c
Pipeline
#972
passed with stage
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/ExprNode.cc
src/ExprNode.cc
+1
-1
No files found.
src/ExprNode.cc
View file @
1e219044
...
...
@@ -5596,7 +5596,7 @@ BinaryOpNode::getPacEC(BinaryOpNode *bopn, int lhs_symb_id, int lhs_orig_symb_id
}
if
(
id
==
lhs_symb_id
||
id
==
lhs_orig_symb_id
)
istarget
=
false
;
ordered_symb_ids
.
push
_back
(
{
orig_id
,
istarget
,
scale
}
);
ordered_symb_ids
.
emplace
_back
(
orig_id
,
istarget
,
scale
);
}
ec_params_and_vars
=
make_pair
(
optim_param_symb_id
,
ordered_symb_ids
);
}
...
...
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