[Boost-bugs] [SPAM] Re: [Boost C++ Libraries] #12438: Wrong additional closing tag in boost::archive::xml_woarchive

Subject: [Boost-bugs] [SPAM] Re: [Boost C++ Libraries] #12438: Wrong additional closing tag in boost::archive::xml_woarchive
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-05 17:42:15


#12438: Wrong additional closing tag in boost::archive::xml_woarchive
-------------------------------+---------------------------
  Reporter: anonymous | Owner: Robert Ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.62.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+---------------------------

Comment (by jaroslav.beran@…):

 I found same bug in version 1.62. I tried to use version 1.64 (downloaded
 from
 https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.7z)
 with same result (additional line).

 I've modified the file
 .\boost_1_64_0\boost\archive\impl\xml_woarchive_impl.ipp as shown below
 and it works fine for me now.

 #ifndef BOOST_NO_INTRINSIC_WCHAR_T\\
 template<class Archive>\\
 BOOST_WARCHIVE_DECL void\\
 xml_woarchive_impl<Archive>::save(const wchar_t * ws){\\
     os << ws;\\
 /* next lines commented out to fix #12438 Wrong additional closing tag in
 boost::archive::xml_woarchive */\\
 #if 0\\
     typedef iterators::xml_escape<const wchar_t *> xmbtows;\\
     std::copy(\\
         xmbtows(ws),\\
         xmbtows(ws + std::wcslen(ws)),\\
         boost::archive::iterators::ostream_iterator<wchar_t>(os)\\
     );\\
 #endif\\
 }\\

 #endif

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/12438#comment:6>
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-07-05 17:45:38 UTC