By having DDBondedChecking inherit from bool, any attempt to add
additional enum values will lead to compilation error, unless the
inheritance is also removed.
class VirtualSitesHandler;
template<typename>
class ArrayRef;
-enum class DDBondedChecking;
+enum class DDBondedChecking : bool;
} // namespace gmx
/*! \brief Returns the global topology atom number belonging to local atom index i.
/*! \brief Options for checking bonded interactions.
*
* These values must match the bool false and true used for mdrun -ddcheck */
-enum class DDBondedChecking
+enum class DDBondedChecking : bool
{
- ExcludeZeroLimit = 0, //!< Do not check bonded interactions that go to 0 for large distances
- All = 1 //!< Check all bonded interactions
+ ExcludeZeroLimit = false, //!< Do not check bonded interactions that go to 0 for large distances
+ All = true //!< Check all bonded interactions
};
/*! \libinternal \brief Structure containing all (command line) options for the domain decomposition */