diff --git a/src/storm/storage/jani/ArrayEliminator.cpp b/src/storm/storage/jani/ArrayEliminator.cpp index 4fbed653e..be98cd544 100644 --- a/src/storm/storage/jani/ArrayEliminator.cpp +++ b/src/storm/storage/jani/ArrayEliminator.cpp @@ -27,6 +27,8 @@ namespace storm { class MaxArraySizeExpressionVisitor : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: + using storm::expressions::ExpressionVisitor::visit; + MaxArraySizeExpressionVisitor() = default; virtual ~MaxArraySizeExpressionVisitor() = default; @@ -128,7 +130,8 @@ namespace storm { class ArrayExpressionEliminationVisitor : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: - + using storm::expressions::ExpressionVisitor::visit; + typedef std::shared_ptr BaseExprPtr; class ResultType { public: diff --git a/src/storm/storage/jani/FunctionEliminator.cpp b/src/storm/storage/jani/FunctionEliminator.cpp index 21906c8cf..3f85a5094 100644 --- a/src/storm/storage/jani/FunctionEliminator.cpp +++ b/src/storm/storage/jani/FunctionEliminator.cpp @@ -26,7 +26,9 @@ namespace storm { class FunctionEliminationExpressionVisitor : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: - + using storm::expressions::ExpressionVisitor::visit; + + typedef std::shared_ptr BaseExprPtr; FunctionEliminationExpressionVisitor(std::unordered_map const* globalFunctions, std::unordered_map const* localFunctions = nullptr) : globalFunctions(globalFunctions), localFunctions(localFunctions) {} diff --git a/src/storm/storage/jani/JSONExporter.h b/src/storm/storage/jani/JSONExporter.h index 9408cff82..ff7355d45 100644 --- a/src/storm/storage/jani/JSONExporter.h +++ b/src/storm/storage/jani/JSONExporter.h @@ -17,6 +17,7 @@ namespace storm { class ExpressionToJson : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: + using storm::expressions::ExpressionVisitor::visit; static ExportJsonType translate(storm::expressions::Expression const& expr, std::vector const& constants, VariableSet const& globalVariables, VariableSet const& localVariables, std::unordered_set const& auxiliaryVariables); virtual boost::any visit(storm::expressions::IfThenElseExpression const& expression, boost::any const& data); diff --git a/src/storm/storage/jani/traverser/ArrayExpressionFinder.cpp b/src/storm/storage/jani/traverser/ArrayExpressionFinder.cpp index ffd5ec641..9849fea52 100644 --- a/src/storm/storage/jani/traverser/ArrayExpressionFinder.cpp +++ b/src/storm/storage/jani/traverser/ArrayExpressionFinder.cpp @@ -11,6 +11,8 @@ namespace storm { namespace detail { class ArrayExpressionFinderExpressionVisitor : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: + using storm::expressions::ExpressionVisitor::visit; + virtual boost::any visit(storm::expressions::IfThenElseExpression const& expression, boost::any const& data) override { return boost::any_cast(expression.getCondition()->accept(*this, data)) || diff --git a/src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp b/src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp index b2e373dbd..e25f2fa85 100644 --- a/src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp +++ b/src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp @@ -11,6 +11,7 @@ namespace storm { namespace detail { class FunctionCallExpressionFinderExpressionVisitor : public storm::expressions::ExpressionVisitor, public storm::expressions::JaniExpressionVisitor { public: + using storm::expressions::ExpressionVisitor::visit; virtual boost::any visit(storm::expressions::IfThenElseExpression const& expression, boost::any const& data) override { expression.getCondition()->accept(*this, data); expression.getThenExpression()->accept(*this, data);