Skip to content

Commit

Permalink
Core/Misc: Build fix for older gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Jan 2, 2016
1 parent c08623e commit 00c878e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Utilities/Containers.h
Expand Up @@ -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());
Expand Down

0 comments on commit 00c878e

Please sign in to comment.