Boost logo

Boost :

From: Ivan Matek (libbooze_at_[hidden])
Date: 2022-01-02 14:58:33


On Sun, Jan 2, 2022 at 3:21 PM John Maddock via Boost <boost_at_[hidden]>
wrote:

> Just thinking out loud here, can std::initializer_list help?
>
You mean adding a constructor with that takes the std::initializer_list of
N-1 dimensional arrays?
That *might *work, but it breaks the "aggregate-ness" since aggregate can
not have user provided constructors :/
https://godbolt.org/z/zfrba368M
Shame since I ♥ this syntax:
    arr<int, 3, 2> a2 = {{10,20},{30,40}, {50,60}};


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