jeudi 30 juillet 2015

This question already has an answer here:

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