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