blob: 5fc05af639bf05f9fc5adec10c6256afe51d4605 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
https://github.com/eglaysher/rlvm/issues/80
diff --git src/base/notification_registrar.cc src/base/notification_registrar.cc
index 2b9d99d..2a6f63f 100644
--- src/base/notification_registrar.cc
+++ src/base/notification_registrar.cc
@@ -46,7 +46,8 @@
}
Record record = { observer, type, source };
- auto found = std::find(registered_.cbegin(), registered_.cend(), record);
+ RecordVector::iterator found = std::find(
+ registered_.begin(), registered_.end(), record);
registered_.erase(found);
// This can be NULL if our owner outlives the NotificationService, e.g. if our
|