X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FObjectPool.hxx;h=e09c5f0185dfb35e51a7b6e3fdc3767e94d02ea4;hb=361885ae5ebf7208809e71dd0e4c3166f5cd699d;hp=ef514b353b0388fdcf4b61eb0cb8924a1742327e;hpb=204a3246f4d94d4375bdac7391bec2b3ab49e0d9;p=modules%2Fsmesh.git diff --git a/src/SMDS/ObjectPool.hxx b/src/SMDS/ObjectPool.hxx index ef514b353..e09c5f018 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-2020 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 ); } }