From 99ac624ab0feabafbf70a10e824d3eb35022ddea Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 13 Aug 2015 00:17:37 +0200 Subject: [PATCH] declare differently --- lib/Basics/AssocMulti.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Basics/AssocMulti.h b/lib/Basics/AssocMulti.h index f133bcb7e9..36d6009405 100644 --- a/lib/Basics/AssocMulti.h +++ b/lib/Basics/AssocMulti.h @@ -354,7 +354,8 @@ namespace triagens { // partition the work into some buckets { - auto partitioner = [&] (size_t chunk) -> void { + std::function partitioner; + partitioner = [&] (size_t chunk) -> void { try { std::unordered_map partitions; size_t lower = chunk * chunkSize;