C++ Logo

std-discussion

Advanced search

Re: add_rvalue_reference

From: language.lawyer_at <language.lawyer_at_[hidden]>
Date: Sat, 3 Jun 2023 16:26:37 +0500
> It seems there is a typo in the table «Table 53: Reference modifications «.
>
> There is written
>
> «If T names a referenceable type then the member typedef type names T&&; otherwise, type names T.»
>
> Instead should it be
>
> «If T names a referenceable type then the member typedef type names T; otherwise, type names T&&.»?

If T is not referenceable («otherwise»), how T&& is possible?

Received on 2023-06-03 11:26:44