From 248b977790b429ebfd22481462193e3e35c57ce2 Mon Sep 17 00:00:00 2001 From: Tim King Date: Wed, 17 Jan 2018 12:16:17 -0800 Subject: Removes yet more throw specifiers. Updating the documentation as needed. (#1518) --- src/expr/node.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/expr/node.h') diff --git a/src/expr/node.h b/src/expr/node.h index fd3d20afa..92f905c8b 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -228,7 +228,10 @@ class NodeTemplate { */ void assignNodeValue(expr::NodeValue* ev); - inline void assertTNodeNotExpired() const throw(AssertionException) { + // May throw an AssertionException if the Node is not live, i.e. the ref count + // is not positive. + inline void assertTNodeNotExpired() const + { if(!ref_count) { Assert( d_nv->d_rc > 0, "TNode pointing to an expired NodeValue" ); } @@ -525,8 +528,7 @@ public: * @param check whether we should check the type as we compute it * (default: false) */ - TypeNode getType(bool check = false) const - throw (CVC4::TypeCheckingExceptionPrivate, CVC4::AssertionException); + TypeNode getType(bool check = false) const; /** * Substitution of Nodes. @@ -1271,7 +1273,7 @@ inline bool NodeTemplate::hasOperator() const { template TypeNode NodeTemplate::getType(bool check) const - throw (CVC4::TypeCheckingExceptionPrivate, CVC4::AssertionException) { +{ Assert( NodeManager::currentNM() != NULL, "There is no current CVC4::NodeManager associated to this thread.\n" "Perhaps a public-facing function is missing a NodeManagerScope ?" ); -- cgit v1.2.3