diff options
author | Max Kellermann <max@duempel.org> | 2013-11-11 12:26:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-11 12:27:15 +0100 |
commit | faf582181649972632ffabb1d9b16aab9e14baa3 (patch) | |
tree | 30d6b8bdf6d3c96b6349190525ad1579f1d66d6c /src/util/LazyRandomEngine.hxx | |
parent | 188673b746a29c6e8d769a2c6a5ebf36ba66a090 (diff) | |
download | mpd-faf582181649972632ffabb1d9b16aab9e14baa3.tar.gz mpd-faf582181649972632ffabb1d9b16aab9e14baa3.tar.xz mpd-faf582181649972632ffabb1d9b16aab9e14baa3.zip |
util/LazyRandomEngine: make min()/max() static+constexpr
Required for building with libc++.
Diffstat (limited to '')
-rw-r--r-- | src/util/LazyRandomEngine.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
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()() { |