From 1a43fad56dc945c72a4ab711d2c9ff6d1a5a1502 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 30 Sep 2009 22:28:33 +0200 Subject: Added Format class for improved logging experience :) --- src/Core/Exception.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Core/Exception.h') diff --git a/src/Core/Exception.h b/src/Core/Exception.h index 48688a4..1d8eb40 100644 --- a/src/Core/Exception.h +++ b/src/Core/Exception.h @@ -82,6 +82,12 @@ class MAD_CORE_EXPORT Exception : public std::exception { } }; +template +std::basic_ostream& operator<<(std::basic_ostream &stream, const Exception &exception) { + stream << exception.toString(); + return stream; +} + } } -- cgit v1.2.3