File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class StrongIdIterator {
90
90
91
91
// /@brief ~ operator
92
92
template <typename IdType>
93
- ssize_t operator -(const StrongIdIterator<IdType>& other) {
93
+ ssize_t operator -(const StrongIdIterator<IdType>& other) const {
94
94
VTR_ASSERT_SAFE (bool (id_));
95
95
VTR_ASSERT_SAFE (bool (other.id_ ));
96
96
@@ -101,19 +101,19 @@ class StrongIdIterator {
101
101
102
102
// /@brief == operator
103
103
template <typename IdType>
104
- bool operator ==(const StrongIdIterator<IdType>& other) {
104
+ bool operator ==(const StrongIdIterator<IdType>& other) const {
105
105
return id_ == other.id_ ;
106
106
}
107
107
108
108
// /@brief != operator
109
109
template <typename IdType>
110
- bool operator !=(const StrongIdIterator<IdType>& other) {
110
+ bool operator !=(const StrongIdIterator<IdType>& other) const {
111
111
return id_ != other.id_ ;
112
112
}
113
113
114
114
// /@brief < operator
115
115
template <typename IdType>
116
- bool operator <(const StrongIdIterator<IdType>& other) {
116
+ bool operator <(const StrongIdIterator<IdType>& other) const {
117
117
return id_ < other.id_ ;
118
118
}
119
119
You can’t perform that action at this time.
0 commit comments