std::array with non-compile-time-constant

Mar 5, 2019 at 11:56am
Is it possible to initialise an std::array with a non-compile-time-constant? Or is the only option to use a vector?

 
std::array<std::string,people> names;
Mar 5, 2019 at 12:16pm
No; use a vector.
Mar 5, 2019 at 12:21pm
Thanks
Topic archived. No new replies allowed.