What\'s the best way to delete an std::string from memory allocated on the heap when I\'m done using it? Thanks!
std::string foo("since it's on the stack, it will auto delete out of scope");
or:
std::string* foo = new std::string("allocated on the heap needs explicit destruction") delete foo;