February 1st, 2010, 5:17 am
QuoteIt may sound paranoid, but copy contractor, assignment and registerWith methods of Observable class aren't exception safe. The danger maybe purely theoretical, though. If Observable::registerObserver throws, then some of the objects mey be corruptedFrom the code, an exception could occur when pushing an observer onto the attention list? It's not obvious what the problems could be.What about boost Signal/Signal2 that is boost's implementation of the Observer pattern? Do you want thread-safe as well?
Last edited by
Cuchulainn on January 31st, 2010, 11:00 pm, edited 1 time in total.