6 ms·
But now there's no one to destroy the object (in a non-trivial case). Returning a reference lets RAII take its natural course.
by pbsd 13y ago
But now there's no one to destroy the object (in a non-trivial case). Returning a reference lets RAII take its natural course.
- mtdewcmu 13y agoThere's nothing to destroy. The string is static.