Skip to content

Commit 42ec426

Browse files
burblebeetkoeppe
authored andcommitted
LWG4239 flat_map's transparent comparator no longer works for string literals
1 parent a7b3313 commit 42ec426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17940,7 +17940,7 @@
1794017940
\tcode{*this} and \tcode{args...} are unchanged.
1794117941
Otherwise equivalent to:
1794217942
\begin{codeblock}
17943-
auto key_it = ranges::upper_bound(@\exposid{c}@.keys, k, @\exposid{compare}@);
17943+
auto key_it = upper_bound(@\exposid{c}@.keys.begin(), @\exposid{c}@.keys.end(), k, @\exposid{compare}@);
1794417944
auto value_it = @\exposid{c}@.values.begin() + distance(@\exposid{c}@.keys.begin(), key_it);
1794517945
@\exposid{c}@.keys.emplace(key_it, std::forward<K>(k));
1794617946
@\exposid{c}@.values.emplace(value_it, std::forward<Args>(args)...);

0 commit comments

Comments
 (0)