X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_Iterator.hxx;h=264438c7dd42fe8793bf424a5d35df14a2a6a25c;hb=5496cb6ab14315c9116496df1c62fc0c0a7bcc3d;hp=144f075d13fbd1f3bc130cc245ed71abab4ad277;hpb=ec6221e48c7b7c6ee6e11008d57d0bfc0dd41992;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_Iterator.hxx b/src/SMDS/SMDS_Iterator.hxx index 144f075d1..264438c7d 100644 --- a/src/SMDS/SMDS_Iterator.hxx +++ b/src/SMDS/SMDS_Iterator.hxx @@ -36,7 +36,11 @@ template class SMDS_Iterator virtual VALUE next()=0; /// Delete the current element and step to the next one - virtual void remove(){}; + virtual void remove(){} + + /// Provide virtual destructor just for case if some derived iterator + /// must have a destructor + virtual ~SMDS_Iterator(){} }; #endif