Skip to content

Commit

Permalink
min()/max() must be constexpr for random generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jolting committed Mar 11, 2019
1 parent b27dc1d commit 2a3bff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/random/include/mrpt/random/RandomGenerators.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class Generator_MT19937
{
public:
using result_type = uint32_t;
static result_type min() { return std::numeric_limits<result_type>::min(); }
static result_type max() { return std::numeric_limits<result_type>::max(); }
static constexpr result_type min() { return std::numeric_limits<result_type>::min(); }
static constexpr result_type max() { return std::numeric_limits<result_type>::max(); }

result_type operator()();

Expand Down

0 comments on commit 2a3bff0

Please sign in to comment.