This commit is contained in:
Michele Caini
2019-04-08 22:13:10 +02:00
parent ca807b892f
commit 57e2eed771
2 changed files with 2 additions and 2 deletions

View File

@@ -712,7 +712,7 @@ public:
std::vector<size_type> copy(*length);
std::iota(copy.begin(), copy.end(), 0);
algo(copy.rbegin(), copy.rend(), [this, compare = std::move(compare), data = data()](const auto lhs, const auto rhs) {
algo(copy.rbegin(), copy.rend(), [compare = std::move(compare), data = data()](const auto lhs, const auto rhs) {
return compare(data[lhs], data[rhs]);
}, std::forward<Args>(args)...);

View File

@@ -1124,7 +1124,7 @@ public:
return compare(std::as_const(instances[lhs]), std::as_const(instances[rhs]));
}, std::forward<Args>(args)...);
} else {
algo(copy.rbegin(), copy.rend(), [this, compare = std::move(compare), data = underlying_type::data()](const auto lhs, const auto rhs) {
algo(copy.rbegin(), copy.rend(), [compare = std::move(compare), data = underlying_type::data()](const auto lhs, const auto rhs) {
return compare(data[lhs], data[rhs]);
}, std::forward<Args>(args)...);
}