We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f68361 + c54da43 commit 93b5962Copy full SHA for 93b5962
lager/detail/nodes.hpp
@@ -235,8 +235,9 @@ class reader_node : public observable_reader_node<T>
235
bool garbage = false;
236
237
this->observers()(last_);
238
- for (auto& wchild : this->children()) {
239
- if (auto child = wchild.lock()) {
+ const auto& children = this->children();
+ for (size_t i = 0, size = children.size(); i < size; ++i) {
240
+ if (auto child = children[i].lock()) {
241
child->notify();
242
} else {
243
garbage = true;
0 commit comments