Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions include/bbp/sonata/population.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class SONATA_API Selection
using Range = std::pair<Value, Value>;
using Ranges = std::vector<Range>;

explicit Selection(Ranges&& ranges);
explicit Selection(const Ranges& ranges);
Selection(Ranges ranges);

template <typename Iterator>
static Selection fromValues(Iterator first, Iterator last);
Expand Down
8 changes: 1 addition & 7 deletions src/population.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,12 @@ Selection union_(const Ranges& lhs, const Ranges& rhs) {
} // namespace detail


Selection::Selection(Selection::Ranges&& ranges)
Selection::Selection(Selection::Ranges ranges)
: ranges_(std::move(ranges)) {
detail::_checkRanges(ranges_);
}


Selection::Selection(const Selection::Ranges& ranges)
: ranges_(ranges) {
detail::_checkRanges(ranges_);
}


Selection Selection::fromValues(const Selection::Values& values) {
return fromValues(values.begin(), values.end());
}
Expand Down