Skip to content

Commit b892444

Browse files
authored
Update data-stream-as-disjoint-intervals.cpp
1 parent 05935dc commit b892444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/data-stream-as-disjoint-intervals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SummaryRanges {
3333
}
3434

3535
vector<Interval> getIntervals() {
36-
return {intervals_.begin(), intervals_.end()};
36+
return {intervals_.cbegin(), intervals_.cend()};
3737
}
3838

3939
private:

0 commit comments

Comments
 (0)