X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FEventManager.cc;h=ca2a598692b6dcad03015729be952398f52cc89c;hb=9bc655e14d2d8c204ed835896cb51e42d49bd68f;hp=0b6a48263835396ccb8db46daf0138bc4b3d9034;hpb=69b25a4904fa86324aedc7147502255ce4117885;p=senf.git diff --git a/senf/PPI/EventManager.cc b/senf/PPI/EventManager.cc index 0b6a482..ca2a598 100644 --- a/senf/PPI/EventManager.cc +++ b/senf/PPI/EventManager.cc @@ -52,11 +52,12 @@ prefix_ void senf::ppi::EventManager::destroyEvent(EventDescriptor & event) { using boost::lambda::_1; namespace l = boost::lambda; - + SENF_ASSERT( std::find_if(registrations_.begin(), registrations_.end(), - l::bind(&detail::EventBindingBase::descriptor_,_1) == &event) - == registrations_.end()); + l::bind(&detail::EventBindingBase::descriptor_,_1) == &event) + == registrations_.end(), + "Internal failure: registrations still active while destroying event ??"); } ///////////////////////////////cc.e////////////////////////////////////////