I'm having an issue initializing std::array with variable.
std::string str = "Hello world this is just testing";
int size = str.size();
std::array<char, size> arr;
Returns following error:
note: 'int size' is not const
error: the value od 'size' is not usable in a constant expression
note: in template argument for type 'long long unsigned int'
I'm newbie, please help.
std::vector.std::string. Everything you can do with astd::vector, you can also do with astd::string.