replace the assert on empty index in the dispatcher by a warning
This commit is contained in:
parent
d10325d1ad
commit
10a5712594
1 changed files with 4 additions and 1 deletions
|
|
@ -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) );
|
||||
|
|
|
|||
Reference in a new issue