Index: boost/property_tree/ini_parser.hpp =================================================================== --- boost/property_tree/ini_parser.hpp (revision 68575) +++ boost/property_tree/ini_parser.hpp (working copy) @@ -69,6 +69,7 @@ typedef typename Ptree::key_type::value_type Ch; typedef std::basic_string Str; const Ch semicolon = stream.widen(';'); + const Ch hash = stream.widen('#'); const Ch lbracket = stream.widen('['); const Ch rbracket = stream.widen(']'); @@ -93,7 +94,7 @@ if (!line.empty()) { // Comment, section or key? - if (line[0] == semicolon) + if (line[0] == semicolon || line[0] == hash) { // Ignore comments }