diff --git a/libs/libvtrutil/src/vtr_strong_id_range.h b/libs/libvtrutil/src/vtr_strong_id_range.h index c4cb036ddf..af19c4c23d 100644 --- a/libs/libvtrutil/src/vtr_strong_id_range.h +++ b/libs/libvtrutil/src/vtr_strong_id_range.h @@ -96,8 +96,7 @@ class StrongIdIterator { } ///@brief ~ operator - template - ssize_t operator-(const StrongIdIterator& other) const { + ssize_t operator-(const StrongIdIterator& other) const { VTR_ASSERT_SAFE(bool(id_)); VTR_ASSERT_SAFE(bool(other.id_)); @@ -107,20 +106,17 @@ class StrongIdIterator { } ///@brief == operator - template - bool operator==(const StrongIdIterator& other) const { + bool operator==(const StrongIdIterator& other) const { return id_ == other.id_; } ///@brief != operator - template - bool operator!=(const StrongIdIterator& other) const { + bool operator!=(const StrongIdIterator& other) const { return id_ != other.id_; } ///@brief < operator - template - bool operator<(const StrongIdIterator& other) const { + bool operator<(const StrongIdIterator& other) const { return id_ < other.id_; } @@ -129,9 +125,8 @@ class StrongIdIterator { }; ///@brief + operator -template -inline StrongIdIterator operator+( - const StrongIdIterator& lhs, +inline StrongIdIterator operator+( + const StrongIdIterator& lhs, ssize_t n) { StrongIdIterator ret = lhs; ret += n; @@ -139,9 +134,8 @@ inline StrongIdIterator operator+( } ///@brief - operator -template -inline StrongIdIterator operator-( - const StrongIdIterator& lhs, +inline StrongIdIterator operator-( + const StrongIdIterator& lhs, ssize_t n) { StrongIdIterator ret = lhs; ret -= n;