Date: Thu, 12 Mar 2020 22:40:23 +0100
Hi,
I propose to deprecate in C++23:
1) mixed pointer and array comparisons:
int a[2]; int b[2];
a == &b[0];
2) array decl in func parameters:
void foo(int a[2]);
In order to make C-style arrays behave like other aggregate types in C++26
or later (supported assignments, comparisons, passing and returning from
functions)
Regards,
Maciej
I propose to deprecate in C++23:
1) mixed pointer and array comparisons:
int a[2]; int b[2];
a == &b[0];
2) array decl in func parameters:
void foo(int a[2]);
In order to make C-style arrays behave like other aggregate types in C++26
or later (supported assignments, comparisons, passing and returning from
functions)
Regards,
Maciej
Received on 2020-03-12 16:43:24