Skip to content

Commit 668c82a

Browse files
authored
[range.dangling] Use ranges::subrange in example (#4946)
1 parent 3a97ba6 commit 668c82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ranges.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@
18761876
auto vec = f();
18771877
auto result2 = ranges::find(vec, 42); // \#2
18781878
static_assert(@\libconcept{same_as}@<decltype(result2), vector<int>::iterator>);
1879-
auto result3 = ranges::find(subrange{vec}, 42); // \#3
1879+
auto result3 = ranges::find(ranges::subrange{vec}, 42); // \#3
18801880
static_assert(@\libconcept{same_as}@<decltype(result3), vector<int>::iterator>);
18811881
\end{codeblock}
18821882
The call to \tcode{ranges::find} at \#1 returns \tcode{ranges::dangling}

0 commit comments

Comments
 (0)