Bonjour,
soit "String" une classe wrappant "std::string",
comment passer un objet de type "String" à une fonction attendant un objet de type "std::string" sans passer par un appel explicite à une méthode du type "String::getStdString" ?
Par exemple :
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 std::string stdString = "toto"; String string(stdString); fstream f(string);
Partager