Make EnumerationArray::size() not static
[alexxy/gromacs.git] / src / gromacs / utility / enumerationhelpers.h
index 17bba5c10a4b9c8a84113b1ef39c249a7f5373b3..e2352b2421aaf436d0a415df0691d2de2c55737d 100644 (file)
@@ -217,7 +217,7 @@ struct EnumerationArray final
     //! Returns an object that provides iterators over the keys.
     static constexpr EnumerationWrapperType keys() { return EnumerationWrapperType{}; }
     //! Returns the size of the enumeration.
-    static constexpr std::size_t size() { return std::size_t(ArraySize); }
+    constexpr std::size_t size() const { return std::size_t(ArraySize); }
 
     /*!@{*/
     //! Array access with asserts: