diff options
Diffstat (limited to 'src/expr/node.cpp')
-rw-r--r-- | src/expr/node.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/expr/node.cpp b/src/expr/node.cpp index 445d91da8..586d0cb13 100644 --- a/src/expr/node.cpp +++ b/src/expr/node.cpp @@ -5,7 +5,7 @@ ** Major contributors: dejan ** 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 @@ -35,10 +35,8 @@ TypeCheckingExceptionPrivate::~TypeCheckingExceptionPrivate() throw () { delete d_node; } -string TypeCheckingExceptionPrivate::toString() const { - stringstream ss; - ss << "Error type-checking " << d_node << ": " << d_msg << std::endl << *d_node; - return ss.str(); +void TypeCheckingExceptionPrivate::toStream(std::ostream& os) const { + os << "Error type-checking " << d_node << ": " << d_msg << std::endl << *d_node; } Node TypeCheckingExceptionPrivate::getNode() const { |