I can't see to find the answer to this, so sorry in advance if there is a duplicate.
Is there a more elegent way of creating a vector<char> from a string.
std::string s("I'm afraid. I'm afraid, Dave.");
std::vector<char> temp;
for (size_t x = 0; x < s.size(); x++)
{
temp.push_back(s[x]);
}
Thanks