|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2007-01-18 11:58:53
sadrok wrote:
> Hi,
>
> I'm loading a class that requires a reference passed to the
> constructor. The implementation requires loading data into a pointer
> as explained in the docs. How is the memory for the loaded object
> handled? Does it automatically get freed when the object goes out of
> scope?
Nope, you have to manage it yourself.
Look for delete_created pointers in the docs.
Also, consider using shared_ptr for automatic storage managment.
Serialization
for shared_ptr is included with the library.
>
> Thanks
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net