From 04fc050edf3eeff85a77910a4d6821bff59fade2 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Fri, 3 Feb 2017 16:06:02 -0800 Subject: Remove unused captures to fix warnings/errors when compiling with Clang (#896) --- src/support/learning.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/support/learning.h') diff --git a/src/support/learning.h b/src/support/learning.h index 749549c1c..8427a2362 100644 --- a/src/support/learning.h +++ b/src/support/learning.h @@ -51,7 +51,7 @@ class GeneticLearner { std::vector population; void sort() { - std::sort(population.begin(), population.end(), [this](const unique_ptr& left, const unique_ptr& right) { + std::sort(population.begin(), population.end(), [](const unique_ptr& left, const unique_ptr& right) { return left->getFitness() > right->getFitness(); }); } @@ -109,4 +109,3 @@ public: } // namespace wasm #endif // wasm_learning_h - -- cgit v1.2.3