Initialize a vector gives me error..

Initialize the vector gives me error..

1
2
3
4
5
    const vector<wxString>VI{wxT("ι"),wxT("η"),wxT("ει"),wxT("υ"),wxT("υι"),wxT("οι")};

or ...

    const vector<wxString>VI{"ι","η","ει","υ","υι","οι"};


error: could not convert '{"\37777777671\003\000", "\37777777667\003\000", "\37777777665\003\37777777671\003\000", "\37777777705\003\000", "\37777777705\003\37777777671\003\000", "\37777777677\003\37777777671\003\000"}' from '<brace-enclosed initializer list>' to 'const std::vector<wxString>'|

Why is that? Any idea?
Last edited on
Topic archived. No new replies allowed.