From 00c878e73a8c6b8ce3339d224ab5611df3bbd07c Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 2 Jan 2016 18:45:01 +0100 Subject: Core/Misc: Build fix for older gcc --- src/common/Utilities/Containers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Utilities/Containers.h') 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()); -- cgit v1.2.3