diff options
-rw-r--r-- | src/common/Utilities/Containers.h | 2 |
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()); |