samedi 27 janvier 2018

Why does this code compile (C++11) without a type mismatch error?

std::vector<char> p = {"abc", "def"};

"abc" and "def" are not char, why doesn't the compiler give me an error about this type mismatch?

Aucun commentaire:

Enregistrer un commentaire