Timeline for How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
Current License: CC BY-SA 2.5
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2017 at 10:31 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Nov 19, 2009 at 6:08 | comment | added | James Eichele | My word! Friendly and cooperative discourse, let alone agreement in an online discussion? Totally unheard of! Nice work :) | |
| Sep 1, 2009 at 9:39 | comment | added | akif | and perhaps will help others in future, thus saving others time :) | |
| Sep 1, 2009 at 9:37 | comment | added | sbi |
@GMan: Go ahead and improve the answer that's on top of the stack. Your answer is good and detailed and definitley deserves to be there. To hell with the rep, if there's one less programmer out there doing this kind of things, that will help us all a lot more than any rep points. :)
|
|
| Sep 1, 2009 at 9:26 | comment | added | GManNickG | I think your point is very good, actually. Should I edit it in? I'm always unsure at this point. If I edit my answer so it's more complete, I feel like I'm "stealing" rep from other people. | |
| Sep 1, 2009 at 9:16 | history | edited | sbi | CC BY-SA 2.5 |
explicitly acknowledged GMan mentioning this earlier than I did
|
| Sep 1, 2009 at 9:14 | comment | added | sbi |
@GMan: I completely read your answer and saw this. I would have only mentioned the delete_pointer_to possibility without elaborating on it, since it's so much inferior. I felt the need to put the off-the-shelf solution into a short, simple "do-it-this-way" answer. (Boost's pointer containers are a nice alternative, though, and I did give an upvote for mentioning them.) I'm sorry if you felt misread.
|
|
| Sep 1, 2009 at 8:41 | history | answered | sbi | CC BY-SA 2.5 |