Skip to content

Commit

Permalink
tmp: Try not using structured bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Aug 15, 2023
1 parent 5516d69 commit 18a7af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HealthGPS.Core/identifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ namespace detail {
template <template <typename...> class Map, class Value>
void map_from_json(const nlohmann::json &j, Map<hgps::core::Identifier, Value> &map) {
map.clear();
for (auto &[key, value] : j.items()) {
map.emplace(std::move(key), value.get<Value>());
for (const auto &item : j.items()) {
map.emplace(item.key(), item.value().get<Value>());
}
}
} // namespace detail
Expand Down

0 comments on commit 18a7af0

Please sign in to comment.