#8869 closed Bugs (fixed)
boost::serialization can't serialize std::shared_ptr (C++11)
Reported by: | Frank | Owned by: | Robert Ramey |
---|---|---|---|
Milestone: | To Be Determined | Component: | serialization |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I prefer to use C++11 and std::shared_ptr, but the serialization library can't use those. Please fix!
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I will fix this --- eventually.
It's not a trivial fix. This is because (out of necessity) I broke a rule and coupled serialization of boost::shared_ptr to the archive clesses. I hated to do it but I felt I had to include boost::shared_ptr. Now we have shared_ptr which is also not serializable without extra help. The real solution is to enhance the archive classes to include some more API to handle classes not normally serializable.
Robert Ramey