Skip to content
Snippets Groups Projects
Commit ab141431 authored by Christian Engwer's avatar Christian Engwer
Browse files

add support for comments on the line

[[Imported from SVN: r6226]]
parent d9a15b42
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,8 @@ void ConfigParser::parseStream(std::istream& in,
}
break;
default :
string::size_type comment = line.find("#");
line = line.substr(0,comment);
string::size_type mid = line.find("=");
if (mid != string::npos)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment