Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#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 Robert Ramey, 9 years ago

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

comment:2 by Robert Ramey, 9 years ago

Resolution: fixed
Status: newclosed

comment:3 by anonymous, 8 years ago

Where is this fixed?

Note: See TracTickets for help on using tickets.