Subject: Re: [boost] [serialization] serializing std::bitset
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2009-04-03 12:38:13
Brian Ravnsgaard Riis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Kenny Riddile wrote:
>> I need to serialize a std::bitset. I found an implementation by Brian
>> Ravnsgaard Riis from 2006 in the vault that doesn't work with xml
>> archives out of the box since it fails to use nvp wrappers internally.
>> Should I just add the nvp wrappers or is there anything more current for
>> serializing std::bitsets?
> I doubt it. There wasn't over-much enthusiasm on the list back then
> IIRC. I've moved away from bitset myself in the case where I needed it
> back then, but the implementation you found should still work.
> As for the NVP wrappers.. Well, I was pretty new to Boost.Serialization
> at the time, and hadn't gotten around to needing XML archives yet. You
> can just add the NVP wrappers then it should work.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thanks...I went ahead and added the NVP wrappers and it works. Still, I
would like to see std::bitset support actually added to the library. I
was a bit surprised when I didn't find it, especially after reading this
line in the library documentation:
"The serialization library contains code for serialization of all STL
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk