How to create std::array with initialization list without providing size directly [duplicate]
There is currently no way to do this without rolling your own make_array, there is a proposal for this N3824: make_array which has the following scope: LWG 851 intended to provide a replacement syntax to array<T, N> a = { E1, E2, … }; , so the following auto a = make_array(42u, 3.14); is well-formed … Read more