Ticket #5379: boost_1.45_libpropertytree.patch
File boost_1.45_libpropertytree.patch, 824 bytes (added by , 12 years ago) |
---|
-
boost/property_tree/ini_parser.hpp
69 69 typedef typename Ptree::key_type::value_type Ch; 70 70 typedef std::basic_string<Ch> Str; 71 71 const Ch semicolon = stream.widen(';'); 72 const Ch hash = stream.widen('#'); 72 73 const Ch lbracket = stream.widen('['); 73 74 const Ch rbracket = stream.widen(']'); 74 75 … … 93 94 if (!line.empty()) 94 95 { 95 96 // Comment, section or key? 96 if (line[0] == semicolon )97 if (line[0] == semicolon || line[0] == hash) 97 98 { 98 99 // Ignore comments 99 100 }