X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FObjectPool.hxx;h=1f1630b2756a3e53199a3a41fae96386c9d3fea6;hb=ff873c8b10f4cc15316f4ee7e1331ec1b4e0c1ab;hp=ef514b353b0388fdcf4b61eb0cb8924a1742327e;hpb=8a9d91b414c3f26586dea735c22c7700898a0a1e;p=modules%2Fsmesh.git diff --git a/src/SMDS/ObjectPool.hxx b/src/SMDS/ObjectPool.hxx index ef514b353..1f1630b27 100644 --- a/src/SMDS/ObjectPool.hxx +++ b/src/SMDS/ObjectPool.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2010-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -28,9 +28,9 @@ namespace { // assure deallocation of memory of a vector - template void clearVector(std::vector& v ) + template void clearVector(Y & v ) { - std::vector emptyVec; v.swap( emptyVec ); + Y emptyVec; v.swap( emptyVec ); } }