Skip to content

Commit

Permalink
Use keywords "static inline constexpr" for constants, if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Aug 18, 2024
1 parent 01bed30 commit 89ff88b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace boosting {

static const uint32 LIMIT = std::numeric_limits<uint32>::max();
static inline constexpr uint32 LIMIT = std::numeric_limits<uint32>::max();

template<typename IndexIterator>
static inline uint32 fetchNextStatistic(IndexIterator& indexIterator, IndexIterator indicesEnd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class MLRLCOMMON_API SparseSetView
/**
* The index that is used to indicate that the value at a specific row and column is zero.
*/
static const uint32 MAX_INDEX = std::numeric_limits<uint32>::max();
static inline constexpr uint32 MAX_INDEX = std::numeric_limits<uint32>::max();

public:

Expand Down

0 comments on commit 89ff88b

Please sign in to comment.