summaryrefslogtreecommitdiff
path: root/src/support/learning.h
diff options
context:
space:
mode:
authorEric Holk <eric.holk@gmail.com>2017-02-03 16:06:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2017-02-03 16:06:02 -0800
commit04fc050edf3eeff85a77910a4d6821bff59fade2 (patch)
tree474e13a9afc0c2b8bd3fcffc63004dc607bbd967 /src/support/learning.h
parent47457e4d7d5fa750c343d288b3f5a607d27f66ff (diff)
downloadbinaryen-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.h3
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
-