-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When trying to build this project on Ubuntu-18.04 with gcc9 I was getting errors due to non matching parameter/return value, with the patch shown bellow I was able to build it:
diff --git a/TameParse/Lr/parser.h b/TameParse/Lr/parser.h
index 89b4151..1cf83f3 100644
--- a/TameParse/Lr/parser.h
+++ b/TameParse/Lr/parser.h
@@ -165,7 +165,7 @@ namespace lr {
// (For hard-coded parsers, the tables often aren't, so there's no need to copy)
if (copyFrom.m_OwnsTables) {
m_OwnsTables = true;
- m_ParserTables = new parser_tables(copyFrom.m_ParserTables);
+ m_ParserTables = new parser_tables(*copyFrom.m_ParserTables);
} else {
m_OwnsTables = false;
m_ParserTables = copyFrom.m_ParserTables;
@@ -728,7 +728,7 @@ namespace lr {
}
/// \brief Retrieves the tables for this parser
- inline const parser_tables& get_tables() const { return m_ParserTables; }
+ inline const parser_tables& get_tables() const { return *m_ParserTables; }
};
///
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels