File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 5670
5670
\end {example }
5671
5671
5672
5672
\item
5673
- Otherwise:
5673
+ Otherwise, \tcode {T1} shall not be reference-related to \tcode {T2}.
5674
5674
\begin {itemize }
5675
5675
\item
5676
- If \tcode {T1} or \tcode {T2} is a class type and
5677
- \tcode {T1} is not reference-related to \tcode {T2},
5676
+ If \tcode {T1} or \tcode {T2} is a class type,
5678
5677
user-defined conversions are considered
5679
5678
using the rules for copy-initialization of an object of type
5680
5679
`` \cvqual {cv1} \tcode {T1}'' by
5693
5692
and the reference is bound to the result.
5694
5693
\end {itemize }
5695
5694
5696
- If
5697
- \tcode {T1}
5698
- is reference-related to
5699
- \tcode {T2}:
5700
- \begin {itemize }
5701
- \item
5702
- \cvqual {cv1}
5703
- shall be the same cv-qualification as, or greater cv-qualification than,
5704
- \cvqual {cv2}; and
5705
- \item
5706
- if the reference is an rvalue reference,
5707
- the initializer expression shall not be an lvalue.
5708
- \begin {note }
5709
- This can be affected by
5710
- whether the initializer expression is move-eligible\iref {expr.prim.id.unqual }.
5711
- \end {note }
5712
- \end {itemize }
5713
-
5714
5695
\begin {example }
5715
5696
\begin {codeblock }
5716
5697
struct Banana { };
You can’t perform that action at this time.
0 commit comments