Date: Tue, 12 Aug 2025 03:56:25 -0500
On Tue, Aug 12, 2025 at 2:35 AM Martin Uecker via Liaison <
liaison_at_[hidden]> wrote:
> Yes. Sorry, I wasn't clear. My point was that if you wanted
> to avoid the "template" notation and write this with "auto"
> like this
>
> void foo(std::array<float, sizeof(b)>, auto b);
>
> this would not work.
Making use before declaration work in this case is a (potentially) breaking
change, because this is valid:
int b;
void foo(std::array<float, sizeof(b)>, auto b);
liaison_at_[hidden]> wrote:
> Yes. Sorry, I wasn't clear. My point was that if you wanted
> to avoid the "template" notation and write this with "auto"
> like this
>
> void foo(std::array<float, sizeof(b)>, auto b);
>
> this would not work.
Making use before declaration work in this case is a (potentially) breaking
change, because this is valid:
int b;
void foo(std::array<float, sizeof(b)>, auto b);
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden] <nevin_at_[hidden]>> +1-847-691-1404
Received on 2025-08-12 08:57:13