Re: [Boost-bugs] [Boost C++ Libraries] #3234: XML Serialization error when loading class that inherits from wstring

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3234: XML Serialization error when loading class that inherits from wstring
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-09 22:57:44


#3234: XML Serialization error when loading class that inherits from wstring
-------------------------------------------------+--------------------------
 Reporter: nitram.cero@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: serialization
  Version: Boost Development Trunk | Severity: Problem
 Keywords: serialization wstring derived class |
-------------------------------------------------+--------------------------

Comment(by anonymous):

 There is no problem saving, but loading. The output XML looks fine.

 But when loading a derived from std::wstring/string class, the loading
 ''template specialization'' is not contemplated, and the operator>> on the
 stream is called as if it were an int, float, any non-specialized type.

 I.e.: Instead of calling the loading function for the parameter wstring&,
 it calls the generic one.

 There could be a class implementation that was primitive_string, besides
 primitive, to allow for customized std::string/wstring

 Regards
 -Martín

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3234#comment:5>
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:00 UTC