summaryrefslogtreecommitdiffstats
path: root/src/Core/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/Exception.h')
-rw-r--r--src/Core/Exception.h6
1 files changed, 6 insertions, 0 deletions
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<typename ElemType, typename Traits>
+std::basic_ostream<ElemType, Traits>& operator<<(std::basic_ostream<ElemType, Traits> &stream, const Exception &exception) {
+ stream << exception.toString();
+ return stream;
+}
+
}
}