2 Jan
2022
2 Jan
'22
10:03 a.m.
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@gmail.com> 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... :)