Skip to content

Commit

Permalink
Fix long ambiguity in conversion ctor
Browse files Browse the repository at this point in the history
Refs: gh-26

Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Feb 6, 2017
1 parent 7f8c29a commit c8341c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions P0214/wording-datapar.tex
Expand Up @@ -50,8 +50,9 @@
\begin{itemdescr}
\pnum\remarks This constructor shall not participate in overload resolution unless
\begin{itemize}
\item \type{abi_type} equals \fixedsizescoped{}\code{<size()>}
\item and every possible value of \type U can be represented with type \valuetype.
\item \type{abi_type} equals \fixedsizescoped{}\code{<size()>},
\item and every possible value of \type U can be represented with type \valuetype,
\item and, if both \type U and \valuetype are integral, the integer conversion rank \citep[(4.15)]{N4618} of \valuetype is greater than the integer conversion rank of \type U.
\end{itemize}
\pnum\effects Constructs an object where the $i$-th element equals \code{static_cast<T>(x[i])} \foralli.
\end{itemdescr}
Expand Down
8 changes: 8 additions & 0 deletions wg21.bib
Expand Up @@ -177,3 +177,11 @@ @misc{N4582
url = {http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/n4582.pdf},
year = {2016}
}
@misc{N4618,
shorthand = {N4618},
editor = {Smith, Richard},
organization = {ISO/IEC JTC1/SC22/WG21},
title = {{Working Draft, Standard for Programming Language \CC{}}},
url = {http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/n4618.pdf},
year = {2016}
}

0 comments on commit c8341c3

Please sign in to comment.