aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Containers.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-01-02 18:45:01 +0100
committerShauren <shauren.trinity@gmail.com>2016-01-02 18:45:01 +0100
commit00c878e73a8c6b8ce3339d224ab5611df3bbd07c (patch)
treec16e7a1e3ae8d7ceb7fa823822708d6eb63fb206 /src/common/Utilities/Containers.h
parentc08623e19a98890fea9e02a822c2d5720ae44dc1 (diff)
Core/Misc: Build fix for older gcc
Diffstat (limited to 'src/common/Utilities/Containers.h')
-rw-r--r--src/common/Utilities/Containers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h
index 311072d93bf..13e5dc55bd3 100644
--- a/src/common/Utilities/Containers.h
+++ b/src/common/Utilities/Containers.h
@@ -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());