|
4710 | 4710 | The
|
4711 | 4711 | \indextext{type!destination}%
|
4712 | 4712 | \term{destination type}
|
4713 |
| -is the type of the object or reference being initialized and the |
| 4713 | +is the cv-unqualified type of the object or reference being initialized and the |
4714 | 4714 | \term{source type}
|
4715 | 4715 | is the type of the initializer expression.
|
4716 | 4716 | If the initializer is not a single (possibly parenthesized) expression, the
|
|
4771 | 4771 | is sequenced before those associated with
|
4772 | 4772 | the initialization of the $j^\text{th}$ element.
|
4773 | 4773 | \item
|
4774 |
| -Otherwise, if the destination type is a (possibly cv-qualified) class type: |
| 4774 | +Otherwise, if the destination type is a class type: |
4775 | 4775 |
|
4776 | 4776 | \begin{itemize}
|
4777 | 4777 | \item
|
4778 | 4778 | If the initializer expression is a prvalue
|
4779 | 4779 | and the cv-unqualified version of the source type
|
4780 |
| -is the same class as the class of the destination, |
| 4780 | +is the same as the destination type, |
4781 | 4781 | the initializer expression is used to initialize the destination object.
|
4782 | 4782 | \begin{example}
|
4783 | 4783 | \tcode{T x = T(T(T()));} value-initializes \tcode{x}.
|
4784 | 4784 | \end{example}
|
4785 | 4785 | \item
|
4786 | 4786 | Otherwise, if the initialization is direct-initialization,
|
4787 | 4787 | or if it is copy-initialization where the cv-unqualified version of the source
|
4788 |
| -type is the same class as, or a derived class of, the class of the destination, |
| 4788 | +type is the same as or is derived from the class of the destination type, |
4789 | 4789 | constructors are considered.
|
4790 | 4790 | The applicable constructors
|
4791 | 4791 | are enumerated\iref{over.match.ctor}, and the best one is chosen
|
|
4882 | 4882 | the (possibly converted) value of the initializer expression.
|
4883 | 4883 | A standard conversion sequence\iref{conv} is used
|
4884 | 4884 | to convert the initializer expression to
|
4885 |
| -a prvalue of the cv-unqualified version of |
| 4885 | +a prvalue of |
4886 | 4886 | the destination type;
|
4887 | 4887 | no user-defined conversions are considered.
|
4888 | 4888 | If the conversion cannot
|
|
0 commit comments