Skip to content

Commit 5ab0083

Browse files
committed
abstract-parser.hh: make the code compile with clang-8.0.0
Without this commit, the build would fail with the following error: make[2]: Entering directory 'csdiff_build' [ 3%] Building CXX object CMakeFiles/cs.dir/csparser.cc.o clang++ -O2 -g -DNDEBUG -Wall -Wextra -fPIC -std=c++11 -o CMakeFiles/cs.dir/csparser.cc.o -c csparser.cc csparser.cc:393:12: error: call to implicitly-deleted default constructor of 'AbstractParser' CovParser::CovParser( ^ abstract-parser.hh:51:26: note: default constructor of 'AbstractParser' is implicitly deleted because field 'emptyProps_' of const-qualified type 'const TScanProps' (aka 'const map<basic_string<char>, basic_string<char> >') would not be initialized const TScanProps emptyProps_; ^ 1 error generated. Closes: https://github.com/kdudka/csdiff/pull/10
1 parent 0189aef commit 5ab0083

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

abstract-parser.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class AbstractParser {
4747
return emptyProps_;
4848
}
4949

50+
protected:
51+
AbstractParser() { }
52+
5053
private:
5154
const TScanProps emptyProps_;
5255
};

0 commit comments

Comments
 (0)