Date: Sat, 19 Oct 2024 19:02:21 +0200
sob., 19 paź 2024 o 18:43 Thiago Macieira via Std-Proposals
<std-proposals_at_[hidden]> napisał(a):
>
> 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.
>
And perobaby in many cases is best sidestep this all and use:
https://en.cppreference.com/w/cpp/string/basic_string_view/data
All continuous containers have it.
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel DCAI Platform & System Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
<std-proposals_at_[hidden]> napisał(a):
>
> 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.
>
And perobaby in many cases is best sidestep this all and use:
https://en.cppreference.com/w/cpp/string/basic_string_view/data
All continuous containers have it.
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel DCAI Platform & System Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2024-10-19 17:02:36