From 362c7536b4453519c5fe2102c5a6a6d91ae29a6f Mon Sep 17 00:00:00 2001 From: MichelJuillard <michel.juillard@mjui.fr> Date: Sun, 13 Nov 2022 20:07:53 +0100 Subject: [PATCH] make some fields public to fix --- src/DataTree.hh | 3 +-- src/SymbolTable.hh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DataTree.hh b/src/DataTree.hh index 1319fee2..b6416139 100644 --- a/src/DataTree.hh +++ b/src/DataTree.hh @@ -289,10 +289,9 @@ public: //! Raised when a trend is declared twice class TrendException : public std::exception { - private: - const string name; public: + const string name; TrendException(string name_arg) : name(name_arg) {} }; diff --git a/src/SymbolTable.hh b/src/SymbolTable.hh index cce17027..cc3299a5 100644 --- a/src/SymbolTable.hh +++ b/src/SymbolTable.hh @@ -194,13 +194,12 @@ public: //! Thrown when trying to declare a symbol twice class AlreadyDeclaredException : public std::exception { - private: + public: //! Symbol name const string name; //! Was the previous declaration done with the same symbol type ? const bool same_type; - public: AlreadyDeclaredException(string name_arg, bool same_type_arg) : name(name_arg), same_type(same_type_arg) { -- GitLab