mariacri11
Programmer
Hi all,
I want to initialize a static stl::list of strings with some predifined string values(hardcoded).
I declared the list in my class like this:
static const list<string> my_list;
(I want to do something like static const list<string> my_list("VAL1","VAL2","VAL3","VAL4") but this is not working.)
Does someone know how to solve this problem?
Thank you very much!
Cristina
I want to initialize a static stl::list of strings with some predifined string values(hardcoded).
I declared the list in my class like this:
static const list<string> my_list;
(I want to do something like static const list<string> my_list("VAL1","VAL2","VAL3","VAL4") but this is not working.)
Does someone know how to solve this problem?
Thank you very much!
Cristina