mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
changed: use constexpr instead of anonymous enums
c++-20 warns for arithmetics using enums
This commit is contained in:
parent
25e10dc710
commit
1b4657db89
@ -85,7 +85,7 @@ namespace Opm {
|
||||
public:
|
||||
/// @brief
|
||||
/// The number of space dimensions.
|
||||
enum { dim = GridInterface::Dimension };
|
||||
static constexpr int dim = GridInterface::Dimension;
|
||||
/// @brief
|
||||
/// The iterator type for iterating over grid cells.
|
||||
typedef typename GridInterface::CellIterator CellIter;
|
||||
|
@ -86,7 +86,7 @@ namespace Opm {
|
||||
public:
|
||||
/// @brief
|
||||
/// The number of space dimensions.
|
||||
enum { dim = GridInterface::Dimension };
|
||||
static constexpr int dim = GridInterface::Dimension;
|
||||
/// @brief
|
||||
/// The iterator type for iterating over grid cells.
|
||||
typedef typename GridInterface::CellIterator CellIter;
|
||||
|
Loading…
Reference in New Issue
Block a user