Boost logo

Boost :

Subject: [boost] [ptr_container] ptr_vector across DLL boundaries
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2009-06-23 16:16:35

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at