DescriptionCatch illegal hash table modifications when they happen.
Not for landing, this approach won't work out -- iterator
stack lifetimes aren't accurate wrt the period we want
hash tables not to be modifiable.
Iterator lifetime is accurate for something like
for (auto it : m_observers) {
..cannot modify m_observers here..
}
but not for
auto it = m_observers.find(o);
if (it != end())
return;
m_observers.add(o);
Patch Set 1 #Patch Set 2 : introduce mod-forbidden scoping #Patch Set 3 : add reqd copy ctor #
Messages
Total messages: 3 (1 generated)
|