vector<char> to string

closed account (EwCjE3v7)
How can I initialize a std::string from a vector<char>?
std::string str(myCharVec.begin(), myCharVec.end());

I think that should work.
closed account (EwCjE3v7)
Waw how stupid I`m I :)

Thank you ;)
Topic archived. No new replies allowed.