Make EnumerationArray::size() not static
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 31 Mar 2021 08:31:48 +0000 (10:31 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Wed, 31 Mar 2021 17:10:34 +0000 (17:10 +0000)
commitae50b73b502bf8c3f1df7e7c369dabe7f216184b
tree181d5ee1fe54b4dda5939bb9f2f4f01d449cb7cd
parentd9410ad4b8c9c239a7692a839bf6b61c5465dd8c
Make EnumerationArray::size() not static

It's formally correct that the method can be static, but this makes
code more complex at the point of use for the doubtful benefit of
making clear to the human reader that the value returned by size() is
a compile-time constant. The compiler can always see it.
src/gromacs/fileio/checkpoint.cpp
src/gromacs/fileio/tpxio.cpp
src/gromacs/modularsimulator/statepropagatordata.cpp
src/gromacs/utility/enumerationhelpers.h