Skip to content

Commit 1776b62

Browse files
committed
LWG3076 basic_string CTAD ambiguity
1 parent e3819fc commit 1776b62

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/strings.tex

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,15 @@
13801380
of the array whose first element is pointed at by \tcode{s},
13811381
\tcode{size()} is equal to \tcode{traits::length(s)}, and
13821382
\tcode{capacity()} is a value at least as large as \tcode{size()}.
1383+
1384+
\pnum
1385+
\remarks
1386+
Shall not participate in overload resolution
1387+
if \tcode{Allocator} is a type
1388+
that does not qualify as an allocator\iref{container.requirements.general}.
1389+
\begin{note}
1390+
This affects class template argument deduction.
1391+
\end{note}
13831392
\end{itemdescr}
13841393

13851394
\indexlibrary{\idxcode{basic_string}!constructor}%
@@ -1404,6 +1413,15 @@
14041413
of \tcode{n} elements, each storing the initial value \tcode{c},
14051414
\tcode{size()} is equal to \tcode{n}, and
14061415
\tcode{capacity()} is a value at least as large as \tcode{size()}.
1416+
1417+
\pnum
1418+
\remarks
1419+
Shall not participate in overload resolution
1420+
if \tcode{Allocator} is a type
1421+
that does not qualify as an allocator\iref{container.requirements.general}.
1422+
\begin{note}
1423+
This affects class template argument deduction.
1424+
\end{note}
14071425
\end{itemdescr}
14081426

14091427
\indexlibrary{\idxcode{basic_string}!constructor}%

0 commit comments

Comments
 (0)