diff options
Diffstat (limited to 'src/expr/expr_template.cpp')
-rw-r--r-- | src/expr/expr_template.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/expr/expr_template.cpp b/src/expr/expr_template.cpp index 51a734757..74bfd3f2b 100644 --- a/src/expr/expr_template.cpp +++ b/src/expr/expr_template.cpp @@ -72,10 +72,8 @@ TypeCheckingException::~TypeCheckingException() throw () { delete d_expr; } -std::string TypeCheckingException::toString() const { - std::stringstream ss; - ss << "Error type-checking " << d_expr << ": " << d_msg << std::endl << *d_expr; - return ss.str(); +void TypeCheckingException::toStream(std::ostream& os) const { + os << "Error type-checking " << d_expr << ": " << d_msg << std::endl << *d_expr; } Expr TypeCheckingException::getExpression() const { |