Date: Mon, 10 Feb 2025 04:11:55 +0000
On Sunday, February 9th, 2025 at 8:08 PM, Jens Maurer <jens.maurer_at_[hidden]> wrote:
>
> On 10/02/2025 04.47, Zhihao Yuan via Std-Proposals wrote:
>
> > Both C++ references and pointers have reference semantics.
> > C++ references are non-nullable and rebindable
>
>
> I always thought having references non-rebindable is
> a major property of them. What makes you think they
> might be rebindable?
>
Typo, the entire sentence should be
C++ references are non-nullable and non-rebindable,
pointers are nullable and rebindable,
std::reference_wrapper is non-nullable and rebindable.
>
> On 10/02/2025 04.47, Zhihao Yuan via Std-Proposals wrote:
>
> > Both C++ references and pointers have reference semantics.
> > C++ references are non-nullable and rebindable
>
>
> I always thought having references non-rebindable is
> a major property of them. What makes you think they
> might be rebindable?
>
Typo, the entire sentence should be
C++ references are non-nullable and non-rebindable,
pointers are nullable and rebindable,
std::reference_wrapper is non-nullable and rebindable.
-- Zhihao Yuan, ID lichray The best way to predict the future is to invent it. _______________________________________________
Received on 2025-02-10 04:12:01