Would it be possible to initialize a vector array of strings?
for example:
static std::vector<std::string> v; //declared as a class member
I used static just to initialize and fill it with strings. Or should i just fill it in the constructor if it can't be initialized like we do with regular arrays.
staticdoesn't "fill it with strings". The std::vector is a dynamic data structure and is created empty.staticin this context means multiple instances of your class all share the samev, is that what you really want?