operator+ and operator- should be const
This commit is contained in:
parent
f93094735e
commit
154b1c7588
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue