Commit 46fcd205 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Don't require C++17 for this change (yet!)

parent fdbbbaf8
Pipeline #3020147 passed with stages
in 21 minutes and 4 seconds
......@@ -21,16 +21,16 @@
using namespace corryvreckan;
Configuration::AccessMarker::AccessMarker(const Configuration::AccessMarker& rhs) {
for(const auto& [key, value] : rhs.markers_) {
registerMarker(key);
markers_.at(key).store(value.load());
for(const auto& key : rhs.markers_) {
registerMarker(key.first);
markers_.at(key.first).store(key.second.load());
}
}
Configuration::AccessMarker& Configuration::AccessMarker::operator=(const Configuration::AccessMarker& rhs) {
for(const auto& [key, value] : rhs.markers_) {
registerMarker(key);
markers_.at(key).store(value.load());
for(const auto& key : rhs.markers_) {
registerMarker(key.first);
markers_.at(key.first).store(key.second.load());
}
return *this;
}
......
Markdown is supported
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