replace the assert on empty index in the dispatcher by a warning

This commit is contained in:
nojhan 2012-01-12 17:47:55 +01:00
commit 10a5712594

View file

@ -120,7 +120,10 @@ public:
//! Add more indexes set and their corresponding repairer operator address to the list
void add( ICT idx, edoRepairer<EOT>* 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) );