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 - typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::function weightExtractor) + typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::function const& weightExtractor) { std::vector weights; weights.reserve(container.size());