Hey guys was hoping you could help me out.
I want to know if it is possible to convert a vector of one type to another implicitly
i.e some way to make this code work (obviously this is a simplified problem of what I am trying to do)
std::vector<int> intVec;
intVec.push_back(1);
std::vector<double> doubleVec = intVec;
std::vector<double> doubleVec2;
doubleVec2 = intVec;
Aucun commentaire:
Enregistrer un commentaire