From b1c1d03215ee6968adf4ebdbab225daf933f07eb Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 23 Aug 2021 17:35:50 +0200 Subject: [PATCH] fix MarsenneTwisterURBG class --- vcg/complex/algorithms/point_sampling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index 5436042c..1ef40d61 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -507,8 +507,8 @@ class MarsenneTwisterURBG public: typedef unsigned int result_type; MarsenneTwisterURBG(result_type max){_max = max;} - static result_type min() {return 0;} - static result_type max() {return std::numeric_limits::max();} + static constexpr result_type min() {return 0;} + static constexpr result_type max() {return std::numeric_limits::max();} result_type operator()() {return SamplingRandomGenerator().generate(_max);} private: result_type _max;