Core/Misc: Build fix for older gcc

This commit is contained in:
Shauren
2016-01-02 18:45:01 +01:00
parent c08623e19a
commit 00c878e73a

View File

@@ -97,7 +97,7 @@ namespace Trinity
* Note: container cannot be empty
*/
template <class C>
typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::function<double(typename C::value_type const&)> weightExtractor)
typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::function<double(typename C::value_type const&)> const& weightExtractor)
{
std::vector<double> weights;
weights.reserve(container.size());