Core/Misc: Fix gcc build
This commit is contained in:
1 parent
7afb179185
commit
74616464f2
1 file changed
+1
-1
@@ -652,7 +652,7 @@ public:
|
||||
/* Select a random element from a container. Note: make sure you explicitly empty check the container */
|
||||
template <class C> typename C::value_type const& SelectRandomContainerElement(C const& container)
|
||||
{
|
||||
C::const_iterator it = container.begin();
|
||||
typename C::const_iterator it = container.begin();
|
||||
std::advance(it, urand(0, container.size() - 1));
|
||||
return *it;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user