From 8aeaf8c1d2cb5844ec4dadbe480822eece5976a6 Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Thu, 22 Apr 2021 12:56:31 +0000 Subject: [PATCH] Fix MSVC build --- src/gromacs/gmxpreprocess/grompp.cpp | 3 ++- src/gromacs/gmxpreprocess/vsite_parm.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gromacs/gmxpreprocess/grompp.cpp b/src/gromacs/gmxpreprocess/grompp.cpp index 6e9b8d4764..2bbc9523fe 100644 --- a/src/gromacs/gmxpreprocess/grompp.cpp +++ b/src/gromacs/gmxpreprocess/grompp.cpp @@ -39,6 +39,7 @@ #include "grompp.h" +#include #include #include #include @@ -122,7 +123,7 @@ InteractionOfType::InteractionOfType(gmx::ArrayRef atoms, params.size() <= forceParam_.size(), gmx::formatString("Cannot have more parameters than the maximum number possible (%d)", MAXFORCEPARAM) .c_str()); - auto* forceParamIt = forceParam_.begin(); + std::array::iterator forceParamIt = forceParam_.begin(); for (const auto param : params) { *forceParamIt++ = param; diff --git a/src/gromacs/gmxpreprocess/vsite_parm.cpp b/src/gromacs/gmxpreprocess/vsite_parm.cpp index 405e3f4ce8..82051635a1 100644 --- a/src/gromacs/gmxpreprocess/vsite_parm.cpp +++ b/src/gromacs/gmxpreprocess/vsite_parm.cpp @@ -39,6 +39,7 @@ #include "vsite_parm.h" +#include #include #include #include @@ -80,7 +81,7 @@ public: { GMX_RELEASE_ASSERT(atomIndex.size() <= atomIndex_.size(), "Cannot add more atom indices than maximum number"); - auto* atomIndexIt = atomIndex_.begin(); + std::array::iterator atomIndexIt = atomIndex_.begin(); for (const auto index : atomIndex) { *atomIndexIt++ = index; -- 2.22.0