diff options
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 6fe1e7d0e..a40b3fce5 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -80,9 +80,14 @@ public: */ NodeTemplate<true> getNode() const; - /** Returns the message corresponding to the type-checking failure */ - std::string toString() const; -}; + /** + * Returns the message corresponding to the type-checking failure. + * We prefer toStream() to toString() because that keeps the expr-depth + * and expr-language settings present in the stream. + */ + void toStream(std::ostream& out) const; + +};/* class TypeCheckingExceptionPrivate */ /** * \typedef NodeTemplate<true> Node; |