Boost logo

Boost Users :

Subject: [Boost-users] [serialization] custom allocation/deletion
From: Brian Budge (brian.budge_at_[hidden])
Date: 2012-06-06 12:46:12


Hi all -

Is there a way to use custom allocation while loading from an archive?
 I'm thinking like passing an allocator along with the archive during
deserialization?

Adding to this, is it possible to add a custom deleter to a shared_ptr
during deserialization? I am thinking of using this with boost mpi,
and if I send a shared_ptr over the wire with some kind of deleter,
the same deleter object can't be used on the other side since it's in
a different address space.

Thanks,
  Brian


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