Skip to content

Commit 7d97865

Browse files
authored
librrgraph: add array operator
This fixes a build error with gcc-16.
1 parent 42ccf87 commit 7d97865

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/librrgraph/src/base/rr_graph_storage.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ class edge_sort_iterator {
173173
return &this->swapper_;
174174
}
175175

176+
edge_swapper& operator[](ssize_t n) const {
177+
return *(*this + n);
178+
}
179+
176180
edge_sort_iterator& operator+=(ssize_t n) {
177181
swapper_.idx_ += n;
178182
return *this;

0 commit comments

Comments
 (0)