
28 Sep
2004
28 Sep
'04
3:31 p.m.
On Mon, 27 Sep 2004 09:58:04 -0700, Robert Ramey <ramey@rrsd.com> wrote:
Oh - no. Use the variable name for the tag not the name of the type. This is encouraged by usage of the idiom
ar & BOOST_SERIALIZATION_NVP(my_variable);
Might I also suggest a similar interface which allows the caller to specify the name to go with the value: BOOST_SERIALIZATION_NAME_VALUE ("variable", m_variable); I'm sure many folks add prefix m_ or trailing underscore warts to member names, and IMHO these don't really have any business being in the serialized form of the object. -- Caleb Epstein caleb.epstein@gmail.com