test: Drop ifdef now that we always use c++20

Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
This commit is contained in:
Rafael Ávila de Espíndola
2020-08-11 11:44:01 -07:00
parent bd2f9fc685
commit ef6a52a407

View File

@@ -61,12 +61,7 @@ public:
if (runs.size() < size_t(cf.schema()->min_compaction_threshold())) {
continue;
}
#if __cplusplus <= 201703L
using vector_shared_sstable_ref = std::vector<shared_sstable>&;
#else
using vector_shared_sstable_ref = std::vector<shared_sstable>&&;
#endif
auto all = boost::accumulate(runs, std::vector<shared_sstable>(), [&] (vector_shared_sstable_ref v, const sstable_run& run) {
auto all = boost::accumulate(runs, std::vector<shared_sstable>(), [&] (std::vector<shared_sstable>&& v, const sstable_run& run) {
v.insert(v.end(), run.all().begin(), run.all().end());
return std::move(v);
});