
23 Jun
2009
23 Jun
'09
8:20 p.m.
I forgot to mention that I'm on Windows. But this, of course, would need to be portable. On Tue, Jun 23, 2009 at 3:16 PM, Robert Dailey <rcdailey@gmail.com> wrote:
Hi, Suppose I have a DLL that allocates a few objects and places them in a ptr_vector. I then pass this ptr_vector to my executable via a move operation (basically a swap, not a copy). The executable would keep the ptr_vector by value and eventually delete it when it falls out of scope.
Is there any danger in doing this? My goal is to make sure that the same memory manager is used to delete the items as was used to create them.