diff options
Diffstat (limited to 'src/expr/expr_manager_scope.h')
-rw-r--r-- | src/expr/expr_manager_scope.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/expr/expr_manager_scope.h b/src/expr/expr_manager_scope.h index c1da288a4..7a5bdbfb4 100644 --- a/src/expr/expr_manager_scope.h +++ b/src/expr/expr_manager_scope.h @@ -5,7 +5,7 @@ ** Major contributors: mdeters ** Minor contributors (to current version): none ** This file is part of the CVC4 prototype. - ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys) + ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys) ** Courant Institute of Mathematical Sciences ** New York University ** See the file COPYING in the top-level source directory for licensing @@ -56,6 +56,11 @@ public: ? NodeManager::currentNM() : e.getExprManager()->getNodeManager()) { } + inline ExprManagerScope(const Type& t) : + d_nms(t.getExprManager() == NULL + ? NodeManager::currentNM() + : t.getExprManager()->getNodeManager()) { + } inline ExprManagerScope(const ExprManager& exprManager) : d_nms(exprManager.getNodeManager()) { } |