Is something wrong with erasing with reverse iterator? When compiling the code fragment below, I receive 'no matching function' error when using 'rit' as argument for erase()
.
std::vector<MyRecord*>* BLV = GetVector;
for (std::vector<MyRecord*>::iterator it = BLV->begin(); it != BLV->end(); ++it)
BLV->erase(it);
for (std::vector<MyRecord*>::reverse_iterator rit = BLV->rbegin(); rit != BLV->rend(); ++rit)
BLV->erase(rit);