Boost logo

Boost :

From: Ivan Matek (libbooze_at_[hidden])
Date: 2022-01-02 10:03:43


Update on update:
John showed me that all what we need is more cowbe... I mean curlies. :)
    arr<int, 3, 2> a2_nested_init{ {{ {{1,2}}, {{3,4}},{{5,6}} }} };
https://godbolt.org/z/Kzs6xbo5T

In my opinion this is very ugly since end users will just get angry and
frustrated and switch to something else most of the time, but at least it
seems equally ugly as nested std::array, so no "regression".

On Sun, Jan 2, 2022 at 9:51 AM Ivan Matek <libbooze_at_[hidden]> wrote:

> Update: it seems agg init does not work for std::array also when nested...
> 💔
> https://godbolt.org/z/9Moz19dhW
>
> https://stackoverflow.com/questions/28541488/nested-aggregate-initialization-of-stdarray
> :)
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk