Date: Mon, 18 Aug 2025 13:58:41 +0200
On 2025-08-18 at 09:45, Jan Schultke via Std-Proposals wrote:
>> What does the comma in new-placement and new-initializer actually do?
>
> It separates the list of arguments, just like in a function call. For example:
>
> new (a,b,c,) T(x,y,z,)
>
> Grammatically, the proposal should just make a trailing comma part of
> the expression-list rule, so it would naturally work in placement-new
> as well, since both these places take an expression-list.
How would this affect my overloaded comma operator? :-)
>> What does the comma in new-placement and new-initializer actually do?
>
> It separates the list of arguments, just like in a function call. For example:
>
> new (a,b,c,) T(x,y,z,)
>
> Grammatically, the proposal should just make a trailing comma part of
> the expression-list rule, so it would naturally work in placement-new
> as well, since both these places take an expression-list.
How would this affect my overloaded comma operator? :-)
Received on 2025-08-18 12:00:06