From: Dmitry Morozov Date: Fri, 13 Aug 2021 15:47:49 +0000 (+0000) Subject: Fix MSVC error in toppush.cpp X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=21b60805b47e12a6bd0a863c7c5c60e5e1ec02c0;p=alexxy%2Fgromacs.git Fix MSVC error in toppush.cpp --- diff --git a/src/gromacs/gmxpreprocess/toppush.cpp b/src/gromacs/gmxpreprocess/toppush.cpp index 087695001b..ebce88d383 100644 --- a/src/gromacs/gmxpreprocess/toppush.cpp +++ b/src/gromacs/gmxpreprocess/toppush.cpp @@ -1970,7 +1970,7 @@ void push_bond(Directive d, } // These are the atom indices for this interaction - gmx::ArrayRef atomIndices(aa.begin(), aa.begin() + nral); + auto atomIndices = gmx::ArrayRef(aa).subArray(0, nral); // Look up the A-state atom types for this interaction std::vector atomTypes(atomIndices.size());