Ticket #5379: boost_1.45_libpropertytree.patch

File boost_1.45_libpropertytree.patch, 824 bytes (added by Dimitri Kaparis <kaparis.dimitri@…>, 12 years ago)

Patch to support # as comment marker in ini parser

  • boost/property_tree/ini_parser.hpp

     
    6969        typedef typename Ptree::key_type::value_type Ch;
    7070        typedef std::basic_string<Ch> Str;
    7171        const Ch semicolon = stream.widen(';');
     72        const Ch hash = stream.widen('#');
    7273        const Ch lbracket = stream.widen('[');
    7374        const Ch rbracket = stream.widen(']');
    7475
     
    9394            if (!line.empty())
    9495            {
    9596                // Comment, section or key?
    96                 if (line[0] == semicolon)
     97                if (line[0] == semicolon || line[0] == hash)
    9798                {
    9899                    // Ignore comments
    99100                }