Initializing std::array private member through constructor
问题 I have for example the following code: #include <iostream> #include <array> class Base { public: Base() : mA(std::array<int,2>()) {} Base(std::array<int,2> arr) : mA(arr) {} Base(/* what to write here ??? */); private: std::array<int,2> mA; }; int main() { std::array<int,2> a = {423, 12}; // Works fine Base b(a); // Works fine Base c({10, 20}); // This is what I need. return 0; } How should I define constructor to allow initialization with as shown in the 3rd line inside "main" above? In