From 45497438b85dfc408c974a788e28525f0b5717b9 Mon Sep 17 00:00:00 2001 From: Tim King Date: Tue, 28 Nov 2017 09:07:14 -0800 Subject: Removing throw specifiers from internal Printer hierarchy. (#1393) --- src/printer/ast/ast_printer.h | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'src/printer/ast/ast_printer.h') diff --git a/src/printer/ast/ast_printer.h b/src/printer/ast/ast_printer.h index 29c3981bf..1d790dd61 100644 --- a/src/printer/ast/ast_printer.h +++ b/src/printer/ast/ast_printer.h @@ -28,14 +28,26 @@ namespace printer { namespace ast { class AstPrinter : public CVC4::Printer { - void toStream(std::ostream& out, TNode n, int toDepth, bool types) const throw(); - void toStream(std::ostream& out, const Model& m, const Command* c) const throw(); -public: + public: using CVC4::Printer::toStream; - void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); - void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); - void toStream(std::ostream& out, const CommandStatus* s) const throw(); - void toStream(std::ostream& out, const Model& m) const throw(); + void toStream(std::ostream& out, + TNode n, + int toDepth, + bool types, + size_t dag) const override; + void toStream(std::ostream& out, + const Command* c, + int toDepth, + bool types, + size_t dag) const override; + void toStream(std::ostream& out, const CommandStatus* s) const override; + void toStream(std::ostream& out, const Model& m) const override; + + private: + void toStream(std::ostream& out, TNode n, int toDepth, bool types) const; + void toStream(std::ostream& out, + const Model& m, + const Command* c) const override; };/* class AstPrinter */ }/* CVC4::printer::ast namespace */ @@ -43,4 +55,3 @@ public: }/* CVC4 namespace */ #endif /* __CVC4__PRINTER__AST_PRINTER_H */ - -- cgit v1.2.3