diff --git a/common/exceptions.hh b/common/exceptions.hh index 1f59962df26b7ee8d84024ceefb6e4d562e8104c..d73f232f1670a496ad7b072f104c487c145aad35 100644 --- a/common/exceptions.hh +++ b/common/exceptions.hh @@ -85,11 +85,11 @@ namespace Dune { std::string _message; }; - void Exception::message(std::string message) { + inline void Exception::message(std::string message) { _message = message; }; - std::ostream& operator<<(std::ostream &stream, Exception &e) { + inline std::ostream& operator<<(std::ostream &stream, Exception &e) { return stream << e.what(); };