diff --git a/include/bbp/sonata/population.h b/include/bbp/sonata/population.h index db8f4fad..6e65d80e 100644 --- a/include/bbp/sonata/population.h +++ b/include/bbp/sonata/population.h @@ -33,8 +33,7 @@ class SONATA_API Selection using Range = std::pair; using Ranges = std::vector; - explicit Selection(Ranges&& ranges); - explicit Selection(const Ranges& ranges); + Selection(Ranges ranges); template static Selection fromValues(Iterator first, Iterator last); diff --git a/src/population.cpp b/src/population.cpp index 2f168cfc..53d6efb1 100644 --- a/src/population.cpp +++ b/src/population.cpp @@ -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()); }