Commit ce17ae41 authored by Lukas Weber's avatar Lukas Weber
Browse files

get rid of try_emplace

parent 8e0ceeba
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment