operator+ and operator- should be const

master
Daniel Kolesa 2015-06-21 22:29:17 +01:00
parent f93094735e
commit 154b1c7588
1 changed files with 2 additions and 2 deletions

View File

@ -333,12 +333,12 @@ public:
return octa::move(tmp);
}
RangeHalf operator+(RangeDifference<T> n) {
RangeHalf operator+(RangeDifference<T> n) const {
RangeHalf tmp(*this);
tmp.add_n(n);
return octa::move(tmp);
}
RangeHalf operator-(RangeDifference<T> n) {
RangeHalf operator-(RangeDifference<T> n) const {
RangeHalf tmp(*this);
tmp.sub_n(n);
return octa::move(tmp);