From: Morgan Deters Date: Mon, 25 Jan 2010 21:15:29 +0000 (+0000) Subject: minor fixes to scoped-context node manager X-Git-Tag: cvc5-1.0.0~9341 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2d38a8522579f9b3e434f76a9426fa8d2f06d07;p=cvc5.git minor fixes to scoped-context node manager --- diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h index 60699eeaf..3d95a4369 100644 --- a/src/expr/node_manager.h +++ b/src/expr/node_manager.h @@ -36,6 +36,8 @@ class NodeManager { Node lookup(uint64_t hash, NodeValue* e); NodeValue* lookupNoInsert(uint64_t hash, NodeValue* e); + friend class NodeManagerScope; + public: static NodeManager* currentNM() { return s_current; } @@ -58,7 +60,7 @@ class NodeManagerScope { NodeManager *d_oldNodeManager; public: - NodeManagerScope(const NodeManager* nm) : d_oldNodeManager(NodeManager::s_current) { + NodeManagerScope(NodeManager* nm) : d_oldNodeManager(NodeManager::s_current) { NodeManager::s_current = nm; } ~NodeManagerScope() {