From ff9c999334d87acc3fcea9737753c30b7f1abe25 Mon Sep 17 00:00:00 2001 From: DDuarte Date: Sun, 3 Jan 2016 20:38:58 +0000 Subject: Core/Utilities: Fix build in some versions of Ubuntu / GCC Closes #16125 --- src/common/Utilities/Containers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/Utilities/Containers.h b/src/common/Utilities/Containers.h index 13e5dc55bd3..c1e3ca9d8b0 100644 --- a/src/common/Utilities/Containers.h +++ b/src/common/Utilities/Containers.h @@ -92,12 +92,12 @@ namespace Trinity * Select a random element from a container where each element has a different chance to be selected. * * @param container Container to select an element from - * @param weightExtractor Function retrieving chance of each element in container + * @param weightExtractor Function retrieving chance of each element in container, expected to take an element of the container and returning a double * * Note: container cannot be empty */ - template - typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, std::function const& weightExtractor) + template + typename C::const_iterator SelectRandomWeightedContainerElement(C const& container, Fn weightExtractor) { std::vector weights; weights.reserve(container.size()); -- cgit v1.2.3