rubricanis
Homo ludens
Eine kurze - vielleicht dumme - Frage. In folgendem Fall frage ich mich ob der destructor der strings automatisch aufgerufen wird bzw. wie das zu handhaben ist.
Code:
class X {
std::string path1, path2;
X(std::string path){
...
path1 = path + "xxx";
path2 = path + "yyy";
}
~X (){
???
}
};