Re: [Boost-bugs] [Boost C++ Libraries] #10854: How to add "class_name" tag into the serialized xml archive?

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10854: How to add "class_name" tag into the serialized xml archive?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-15 16:35:06


#10854: How to add "class_name" tag into the serialized xml archive?
-------------------------------+--------------------------------------
  Reporter: power_devil@… | Owner: ramey
      Type: Support Requests | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.57.0 | Severity: Not Applicable
Resolution: wontfix | Keywords: serialization class_name
-------------------------------+--------------------------------------
Changes (by ramey):

 * status: new => closed
 * resolution: => wontfix

Comment:

 I don't see an obvious way to get what you want here.

 This would be definitely doable, but you'd have to invest some more effort
 than you might want to. The short version of ow to do this is to create
 your own version of xml_oarchive and maybe xml_iarchive. These might be
 just extensions of the current ones created by derivation:
 {{{
 class my_xml_oarchive : public xml_archive_impl {
    // overridden functions
 };
 }}}

 It's not a lot of work to do, but doing so would require pretty good
 understanding of the implementation of the serialization library. I can't
 know how much time that would take.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10854#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC