Fix double overload in LocalAtomSet code when gmx::index is int
authorChristian Blau <cblau@gwdg.de>
Tue, 3 Sep 2019 10:36:09 +0000 (12:36 +0200)
committerChristian Blau <cblau@gwdg.de>
Wed, 4 Sep 2019 13:58:07 +0000 (15:58 +0200)
commitdc5f94e7f0beb55e0edf63c2a7782664b104e33c
tree904b6b5ca28aaaf950861ed2017f173af43fe566
parentfc6b60b70fe812a2a4f5a46ddb363801b52659ea
Fix double overload in LocalAtomSet code when gmx::index is int

In cases where the int type matches the gmx::index (aka ptrdiff) type
two overloaded constructors in LocalAtomSetData became the same, as well
as the overloaded add method. This is now avoided by an enable_if
clause.

Change-Id: I139c7feff141928f71c71d6f6db3ee1bffe325b7
src/gromacs/domdec/localatomsetdata.cpp
src/gromacs/domdec/localatomsetdata.h
src/gromacs/domdec/localatomsetmanager.cpp
src/gromacs/domdec/localatomsetmanager.h
src/gromacs/domdec/tests/localatomsetmanager.cpp
src/gromacs/pulling/pull.cpp
src/gromacs/pulling/pull_rotation.cpp
src/gromacs/swap/swapcoords.cpp