summaryrefslogtreecommitdiff
path: root/src/expr
diff options
context:
space:
mode:
authorTim King <taking@google.com>2016-09-01 01:28:02 -0700
committerTim King <taking@google.com>2016-09-01 01:28:02 -0700
commitd09bb1889f184de32ceb078a815e016502e24279 (patch)
tree7dad83af4d6fc6be58a98c940234a99e5254ea94 /src/expr
parentd6b840e521eef52a864f51fa18d6e86a6bf34f4a (diff)
Relaxing the throw specifiers for the destructors for Node, TypeNode, the context/ classes, and their subclasses. Fixes compilation issues with clang 3.5 and -std=c++11 'exception specification of overriding function is more lax than base version' for a couple of different classes.
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/node.h4
-rw-r--r--src/expr/type_node.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index 998294da3..c9bfb75a4 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -308,7 +308,7 @@ public:
* Destructor. If ref_count is true it will decrement the reference count
* and, if zero, collect the NodeValue.
*/
- ~NodeTemplate() throw(AssertionException);
+ ~NodeTemplate();
/**
* Return the null node.
@@ -1089,7 +1089,7 @@ NodeTemplate<ref_count>::NodeTemplate(const Expr& e) {
}
template <bool ref_count>
-NodeTemplate<ref_count>::~NodeTemplate() throw(AssertionException) {
+NodeTemplate<ref_count>::~NodeTemplate() {
Assert(d_nv != NULL, "Expecting a non-NULL expression value!");
if(ref_count) {
// shouldn't ever fail
diff --git a/src/expr/type_node.h b/src/expr/type_node.h
index 46fdaa143..0cada0df2 100644
--- a/src/expr/type_node.h
+++ b/src/expr/type_node.h
@@ -116,7 +116,7 @@ public:
* Destructor. If ref_count is true it will decrement the reference count
* and, if zero, collect the NodeValue.
*/
- ~TypeNode() throw(AssertionException);
+ ~TypeNode();
/**
* Assignment operator for nodes, copies the relevant information from node
@@ -785,7 +785,7 @@ inline TypeNode::TypeNode(const TypeNode& typeNode) {
d_nv->inc();
}
-inline TypeNode::~TypeNode() throw(AssertionException) {
+inline TypeNode::~TypeNode() {
Assert(d_nv != NULL, "Expecting a non-NULL expression value!");
d_nv->dec();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback