|
|
|
|
|
by SamReidHughes
3977 days ago
|
|
> if we assume that we're working with modern codebase written by adequate developers Yeah, come to think of it if there's a chance this function came from a pre-C++11 codebase I wouldn't be so sure that the caller wasn't supposed to delete those nodes. Well, it'd be an odd thing for this particular function, I guess, but it's something I've seen or might have done, in general. In that case maybe I'd have had the function take an output parameter instead, in order to give it a scary variable name. |
|