Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
ce17ae41
Commit
ce17ae41
authored
Apr 08, 2019
by
Lukas Weber
Browse files
get rid of try_emplace
parent
8e0ceeba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/merger.cpp
View file @
ce17ae41
...
...
@@ -46,7 +46,8 @@ results merge(const std::vector<std::string> &filenames, const std::vector<evala
continue
;
}
res
.
observables
.
try_emplace
(
obs_name
);
if
(
res
.
observables
.
count
(
obs_name
)
==
0
)
res
.
observables
.
emplace
(
obs_name
,
observable_result
());
auto
&
obs
=
res
.
observables
.
at
(
obs_name
);
obs
.
name
=
obs_name
;
...
...
Write
Preview
Supports
Markdown
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