This question already has an answer here:
- Why can't I make a vector of references? 8 answers
I have pretty short question, why can't I declare a vector of string references, both
std::vector<std::string> strings;
std::vector<std::string*> strings;
declarations are working fine. But when I try to do the following:
std::vector<std::string &> strings;
I get a list of errors in std
<vector>
and <memory>
header files...
Thank you in advance
Aucun commentaire:
Enregistrer un commentaire