From 603cc849b937b64bcd54c23792ca0f085f641428 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Mon, 24 Apr 2017 11:12:08 +0200 Subject: [PATCH 1/2] fix attempt for @dothebart'a ancient compiler --- arangod/MMFiles/MMFilesSkiplistIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/MMFiles/MMFilesSkiplistIndex.cpp b/arangod/MMFiles/MMFilesSkiplistIndex.cpp index 123a7f4b4d..a0eebf9000 100644 --- a/arangod/MMFiles/MMFilesSkiplistIndex.cpp +++ b/arangod/MMFiles/MMFilesSkiplistIndex.cpp @@ -1430,7 +1430,7 @@ arangodb::aql::AstNode* MMFilesSkiplistIndex::specializeCondition( } std::sort(nodes.begin(), nodes.end(), - [](arangodb::aql::AstNode const* lhs, + [this](arangodb::aql::AstNode const* lhs, arangodb::aql::AstNode const* rhs) -> bool { return Index::sortWeight(lhs) < Index::sortWeight(rhs); }); From 7cbd1841a80ee43079b693d677e7b4e34fff7ece Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Mon, 24 Apr 2017 11:25:10 +0200 Subject: [PATCH 2/2] fix gcc 4.9 compilation issue --- arangod/MMFiles/MMFilesSkiplistIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/MMFiles/MMFilesSkiplistIndex.cpp b/arangod/MMFiles/MMFilesSkiplistIndex.cpp index a0eebf9000..6c635ec348 100644 --- a/arangod/MMFiles/MMFilesSkiplistIndex.cpp +++ b/arangod/MMFiles/MMFilesSkiplistIndex.cpp @@ -1432,7 +1432,7 @@ arangodb::aql::AstNode* MMFilesSkiplistIndex::specializeCondition( std::sort(nodes.begin(), nodes.end(), [this](arangodb::aql::AstNode const* lhs, arangodb::aql::AstNode const* rhs) -> bool { - return Index::sortWeight(lhs) < Index::sortWeight(rhs); + return this->sortWeight(lhs) < this->sortWeight(rhs); }); lastContainsEquality = containsEquality;