c++serializationboostc++11boost-serialization

Does boost support serialization of c++11's std::tuple?


Does boost support serialization of c++11's std::tuple?

I couldn't find a tuple.hpp header file at /boost/serialization/

I'm using boost 1.52.0 (happy to upgrade if need be, but it seems like the changes in version 1.53 doesn't have anything related to this).


Solution

  • Out of the box, no. You'll have to write the serializer yourself. Luckily, someone already did:

    C++0x tuple boost serialization (also in github)