$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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