Ticket #12141: xml_woarchive_impl.diff

File xml_woarchive_impl.diff, 702 bytes (added by frank.richter@…, 5 years ago)

Patch to fix xml_woarchive writing after last tag

  • boost/archive/impl/xml_woarchive_impl.ipp

     
    101101template<class Archive>
    102102BOOST_WARCHIVE_DECL void
    103103xml_woarchive_impl<Archive>::save(const wchar_t * ws){
    104     os << ws;
    105104    typedef iterators::xml_escape<const wchar_t *> xmbtows;
    106105    std::copy(
    107106        xmbtows(ws),
     
    141140    if(std::uncaught_exception())
    142141        return;
    143142    if(0 == (this->get_flags() & no_header)){
    144         save(L"</boost_serialization>\n");
     143        this->windup();
    145144    }
    146145}
    147146