removed const qualifier from choice() member
This commit is contained in:
parent
b2ac3d6958
commit
fe9fe17eb6
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ public :
|
|||
@return Uniformly chosen element from the vector.
|
||||
*/
|
||||
template <typename TYPE>
|
||||
const TYPE& choice(const std::vector<TYPE>& vec) const
|
||||
const TYPE& choice(const std::vector<TYPE>& vec)
|
||||
{ return vec[random(vec.size())]; }
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue