3 ms·
Then it isn't destructor-free (and not passed by reference if it's on the stack).
by beagle3 6y ago
Then it isn't destructor-free (and not passed by reference if it's on the stack).
- murderfs 6y agoNo. Arguments that are trivial types can still depend on other objects not being destroyed. void foo(const char* str) { if (*str == '\0') return; printf("%c", str[0]); std::string x = str + 1; return foo(x.c_str()); }