C++ Logo

std-proposals

Advanced search

Re: [std-proposals] operator*&

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 19 Oct 2024 09:43:24 -0700
On Saturday 19 October 2024 08:19:25 GMT-7 Jeremy Rifkin via Std-Proposals
wrote:
> Why does this need to be an operator when &*it already works as you want?

Except when it doesn't, when operator& is overloaded. That's why we have
std::to_address.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-10-19 16:43:28