]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Code proposition to avoid ifdef rnv/win_build20.02.2021
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 22 Feb 2021 06:19:06 +0000 (07:19 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 22 Feb 2021 06:19:06 +0000 (07:19 +0100)
src/MEDLoader/MeshFormatReader.hxx

index 096de4a15517e6dffdeee5427ccf44ea28a4edfc..edba165d63ae67eddaafd0746bf112979f2789c0 100644 (file)
@@ -108,14 +108,9 @@ private:
         else
         {
             std::vector <MeshFormatElement>* tmpVec2 = aMap[removeFromFamily.first];
-#if !defined WIN32 && __GNUC_PREREQ(4,9)
-            std::vector <MeshFormatElement>::const_iterator itt2;
-#else
-            std::vector <MeshFormatElement>::iterator itt2;
-#endif
             const MeshFormatElement e = removeFromFamily.second;
-            itt2 = std::find(tmpVec2->begin(), tmpVec2->end(), e);
-            if (itt2 != tmpVec2->end())
+            auto itt2 = std::find(tmpVec2->cbegin(), tmpVec2->cend(), e);
+            if (itt2 != tmpVec2->cend())
                 tmpVec2->erase(itt2);
 
             if (!tmpVec2->size())