From faf582181649972632ffabb1d9b16aab9e14baa3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Nov 2013 12:26:59 +0100 Subject: util/LazyRandomEngine: make min()/max() static+constexpr Required for building with libc++. --- src/util/LazyRandomEngine.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/util/LazyRandomEngine.hxx b/src/util/LazyRandomEngine.hxx index 8afe1d1c0..bfe4bb60c 100644 --- a/src/util/LazyRandomEngine.hxx +++ b/src/util/LazyRandomEngine.hxx @@ -49,12 +49,12 @@ public: */ void AutoCreate(); - result_type min() const { - return engine->min(); + static constexpr result_type min() { + return std::mt19937::min(); } - result_type max() const { - return engine->max(); + static constexpr result_type max() { + return std::mt19937::max(); } result_type operator()() { -- cgit v1.2.3