I am trying to push_back() „ symbol to std::vectortemp.
I keep getting "error: character too large for enclosing character literal type
void CharVect (std::vector<char>&temp)
{
temp.push_back('-');
temp.push_back(',');
temp.push_back('.');
temp.push_back('?');
temp.push_back('!');
temp.push_back(':');
temp.push_back(';');
temp.push_back('(');
temp.push_back(')');
temp.push_back('„'); // error
temp.push_back('”'); // error, but " works
temp.push_back('{');
temp.push_back('}');
temp.push_back('*');
temp.push_back('#');
}
I expect to push_back() these values to std::vector .
Aucun commentaire:
Enregistrer un commentaire