Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
faf58218
Commit
faf58218
authored
Nov 11, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/LazyRandomEngine: make min()/max() static+constexpr
Required for building with libc++.
parent
188673b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
LazyRandomEngine.hxx
src/util/LazyRandomEngine.hxx
+4
-4
No files found.
src/util/LazyRandomEngine.hxx
View file @
faf58218
...
...
@@ -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
()()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment