diff options
author | Eric Holk <eric.holk@gmail.com> | 2017-02-03 16:06:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-02-03 16:06:02 -0800 |
commit | 04fc050edf3eeff85a77910a4d6821bff59fade2 (patch) | |
tree | 474e13a9afc0c2b8bd3fcffc63004dc607bbd967 /src/support/learning.h | |
parent | 47457e4d7d5fa750c343d288b3f5a607d27f66ff (diff) | |
download | binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.tar.gz binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.tar.bz2 binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.zip |
Remove unused captures to fix warnings/errors when compiling with Clang (#896)
Diffstat (limited to 'src/support/learning.h')
-rw-r--r-- | src/support/learning.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<unique_ptr> 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 - |