Queue: make the constructor "explicit"

This commit is contained in:
Max Kellermann 2014-01-20 08:57:41 +01:00
parent 313d1d5d83
commit 6b4d7d7315
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ struct queue {
/** random number generator for shuffle and random mode */
LazyRandomEngine rand;
queue(unsigned max_length);
explicit queue(unsigned max_length);
/**
* Deinitializes a queue object. It does not free the queue