Skip to content

Commit 491599e

Browse files
committed
use std::erase, instead of assign
Signed-off-by: arthurjolo <[email protected]>
1 parent bd31ed1 commit 491599e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cts/src/CtsOptions.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ void CtsOptions::limitSinkClusteringSizes(unsigned limit)
3333
}
3434
auto lowerBound = std::lower_bound(
3535
sinkClusteringSizes_.begin(), sinkClusteringSizes_.end(), limit);
36-
sinkClusteringSizes_.assign(sinkClusteringSizes_.begin(), lowerBound);
36+
sinkClusteringSizes_.erase(lowerBound, sinkClusteringSizes_.end());
3737
sinkClusteringSizes_.push_back(limit);
38+
39+
for(auto i : sinkClusteringSizes_) {
40+
logger_->report("i: {}", i);
41+
}
3842
}
3943

4044
void CtsOptions::recordBuffer(odb::dbMaster* master, MasterType type)

0 commit comments

Comments
 (0)