diff options
author | Tim King <taking@google.com> | 2016-09-01 01:28:02 -0700 |
---|---|---|
committer | Tim King <taking@google.com> | 2016-09-01 01:28:02 -0700 |
commit | d09bb1889f184de32ceb078a815e016502e24279 (patch) | |
tree | 7dad83af4d6fc6be58a98c940234a99e5254ea94 /src/context/context.h | |
parent | d6b840e521eef52a864f51fa18d6e86a6bf34f4a (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/context/context.h')
-rw-r--r-- | src/context/context.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/context/context.h b/src/context/context.h index 4f45e8954..f7707bdec 100644 --- a/src/context/context.h +++ b/src/context/context.h @@ -152,7 +152,7 @@ public: /** * Destructor: pop all scopes, delete ContextMemoryManager */ - ~Context() throw(AssertionException); + ~Context(); /** * Return the current (top) scope @@ -277,7 +277,7 @@ public: * Destructor: Restore all of the objects in ContextObjList. Defined inline * below. */ - ~Scope() throw(AssertionException); + ~Scope(); /** * Get the Context for this Scope @@ -615,7 +615,7 @@ public: /** * Destructor does nothing: subclass must explicitly call destroy() instead. */ - virtual ~ContextObj() throw(AssertionException) {} + virtual ~ContextObj() {} /** * If you want to allocate a ContextObj object on the heap, use this @@ -711,7 +711,7 @@ public: /** * Destructor: removes object from list */ - virtual ~ContextNotifyObj() throw(AssertionException); + virtual ~ContextNotifyObj(); };/* class ContextNotifyObj */ @@ -725,7 +725,7 @@ inline void ContextObj::makeSaveRestorePoint() throw(AssertionException) { update(); } -inline Scope::~Scope() throw(AssertionException) { +inline Scope::~Scope() { // Call restore() method on each ContextObj object in the list. // Note that it is the responsibility of restore() to return the // next item in the list. |