C++ Logo

liaison

Advanced search

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

From: Jens Gustedt <jens.gustedt_at_[hidden]>
Date: Wed, 12 Aug 2020 22:16:53 +0200
Ville,

on Wed, 12 Aug 2020 22:41:43 +0300 you (Ville Voutilainen
<ville.voutilainen_at_[hidden]>) wrote:

> On Wed, 12 Aug 2020 at 22:37, Jens Gustedt via Liaison
> <liaison_at_[hidden]> wrote:

> > Since it seems that designated initializers are new in C++20, had
> > that particular property much been used before?
>
> In initializer_lists, yes, since C++11. How much, I don't know, but to
> some extent, certainly.

Ok, that's a real difference between C and C++, then.

I will add that to the list of subtle differences that programmes in
the intersection of C and C++ should be aware of. This also concerns
header compatibility, since initializers might well appear in headers.

Thanks
Jens

-- 
:: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536   ::
:: :::::::::::::::::::::: gsm France : +33 651400183   ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

Received on 2020-08-12 15:20:20