Ticket #4245: boost_xml.patch

File boost_xml.patch, 626 bytes (added by Christopher Alfeld <alfeld@…>, 12 years ago)

Patch for r62110 trunk.

  • boost/property_tree/detail/xml_parser_utils.hpp

     
    4646    {
    4747        typedef typename std::basic_string<Ch> Str;
    4848        Str r;
     49
     50        // If s is empty we are done.
     51        if (s.empty())
     52          return r;
     53
    4954        // To properly round-trip spaces and not uglify the XML beyond
    5055        // recognition, we have to encode them IF the text contains only spaces.
    5156        Str sp(1, Ch(' '));