[serialization] support for C++-11 types
Hi boost-users, Apologies if this question has been asked before - I'm sure it has, but my googling-fu is not finding decent matches. Anyways, the question is: with C++11 we have a number of new container types such as std::array, std::underdered_map/set, std::forward_list, etc. Are those supported by the latest release of the serialization library? If not, is there a trac ticket for this work? Many thanks for your time, Marco -- So young, and already so unknown -- Pauli blog: http://mcraveiro.blogspot.com
Maybe YAS will be appropriate for you? https://github.com/niXman/yas -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/
niXman wrote:
Maybe YAS will be appropriate for you?
YAS sounds interesting. I believe boost serialization has special handling for shared_ptr. Does/will YAS?
YAS sounds interesting. I believe boost serialization has special handling for shared_ptr. Does/will YAS?
Supported yas::shared_buffer only [1] Below the 65 line [2] it is shown the implementation of the way of read/write, but I think this is a very unsafe way. I'll see how it is implemented in boost.serialization, and I'll fix it in a short time. [1] https://github.com/niXman/yas/blob/master/include/yas/detail/tools/buffers.h... [2] https://github.com/niXman/yas/blob/master/include/yas/serializers/binary/uti... -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/
I recommend to wait a week, and I will commit many changes increasing the stability and speed of YAS. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/
Maybe YAS will be appropriate for you?
Does YAS support serialization of polymorphic objects (through a pointer to the base class)? Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu
Does YAS support serialization of polymorphic objects (through a pointer to the base class)?
Not yet, but it is in the plans. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/
From: hartmut.kaiser@gmail.com To: boost-users@lists.boost.org Date: Thu, 1 Nov 2012 12:33:03 -0500 Subject: Re: [Boost-users] [serialization] support for C++-11 types
Maybe YAS will be appropriate for you?
Does YAS support serialization of polymorphic objects (through a pointer to the base class)?
Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Marco Craveiro wrote:
Hi boost-users,
Apologies if this question has been asked before - I'm sure it has, but my googling-fu is not finding decent matches. Anyways, the question is: with C++11 we have a number of new container types such as std::array, std::underdered_map/set, std::forward_list, etc. Are those supported by the latest release of the serialization library?
No
If not, is there a trac ticket for this work?
there is - along with a patch - for unordered. array has been mentioned. No one has done an exhaust check on this. std::shared pointer would be a problem as well. In short, C++11 has not been addressed by the serialization library. Robert Ramey
Many thanks for your time,
Marco
participants (6)
-
Hartmut Kaiser
-
Marco Craveiro
-
Neal Becker
-
niXman
-
Robert Ramey
-
Romin Puri