From ab141431f31904b50e719509d3b7921c0abe0c3c Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Wed, 3 Nov 2010 15:37:16 +0000
Subject: [PATCH] add support for comments on the line

[[Imported from SVN: r6226]]
---
 dune/common/configparser.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dune/common/configparser.cc b/dune/common/configparser.cc
index 9c2b57f53..b1d2d2cc2 100644
--- a/dune/common/configparser.cc
+++ b/dune/common/configparser.cc
@@ -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)
       {
-- 
GitLab