SyntaxFix
Write A Post
Hire A Developer
Questions
With C++11, you can do std::string(v.data()) or, if your vector does not contain a '\0' at the end, std::string(v.data(), v.size()).
std::string(v.data())
'\0'
std::string(v.data(), v.size())