C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] Designated initializers in C++ and C

From: Florian Weimer <fw_at_[hidden]>
Date: Thu, 13 Aug 2020 11:46:41 +0200
* Jens Gustedt via Liaison:

>
> It is recommended that applications that target the common C/C++
> core list initializers in declaration order. Further it is
> recommended that implementations that target that core diagnose
> situations that would be problematic for the other language,
> such as initializers not appearing in declaration order or
> initializer expressions that require sequencing.

I think you should also recommend that standards specify the order of
struct fields, and not just that the fields exist.

Received on 2020-08-13 04:50:10