From 10a5712594cc74d5089feb3b3907613642508b8f Mon Sep 17 00:00:00 2001 From: nojhan Date: Thu, 12 Jan 2012 17:47:55 +0100 Subject: [PATCH] replace the assert on empty index in the dispatcher by a warning --- edo/src/edoRepairerDispatcher.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edo/src/edoRepairerDispatcher.h b/edo/src/edoRepairerDispatcher.h index 1bf9cb39..b2c0777b 100644 --- a/edo/src/edoRepairerDispatcher.h +++ b/edo/src/edoRepairerDispatcher.h @@ -120,7 +120,10 @@ public: //! Add more indexes set and their corresponding repairer operator address to the list void add( ICT idx, edoRepairer* op ) { - assert( idx.size() > 0 ); + //assert( idx.size() > 0 ); +#ifndef NDEBUG + eo::log << eo::warnings << "A repairer is added to the dispatcher while having an empty index list, nothing will be repaired" << std::endl; +#endif assert( op != NULL ); this->push_back( std::make_pair(idx, op) );