Skip to content

Commit a4f5e90

Browse files
authored
[clang-tidy][NFC][doc] mention some range algorithms do not work for vector<bool> in C++20 (#120774)
1 parent b2d7312 commit a4f5e90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Calls to the following std library algorithms are checked:
104104
``std::unique``,
105105
``std::upper_bound``.
106106

107+
Note: some range algorithms for ``vector<bool>`` require C++23 because it uses
108+
proxy iterators.
109+
107110
Reverse Iteration
108111
-----------------
109112

0 commit comments

Comments
 (0)