Boost logo

Boost Users :

Subject: [Boost-users] serialization of STL containers with non-default allocator
From: Jonathan Bishop (jbishop.rwc_at_[hidden])
Date: 2011-10-20 11:49:39


In my code I have used a non-default allocator MyAlloc for the STL classes.

For instance,

   typedef std::basic_string< char, std::char_traits<char>,
MyAlloc<char> > string ;

  Archive ar;
  ar & s; // compile error

Is there a way to make this work. I know there is a builtin
serialization for std::string which I would like to use.

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