Skip to content

Commit

Permalink
ram: avoid using structured binding declarations (#171)
Browse files Browse the repository at this point in the history
This is a feature in C++17. However, the legacy C++ compiler used
by some VCS installations supports C++11 only.
  • Loading branch information
poemonsense authored Sep 21, 2023
1 parent 6d87841 commit 1c26c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/csrc/common/ram.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ class FootprintsMemory : public SimMemory {
auto cb = [func](uint64_t index, uint64_t value) {
func(index * sizeof(uint64_t), &value, sizeof(uint64_t));
};
for (const auto& [index, value] : ram) {
cb(index, value);
for (auto i = ram.begin(); i != ram.end(); i++) {
cb(i->first, i->second);
}
add_callback(cb);
}
Expand Down

0 comments on commit 1c26c49

Please sign in to comment.