diff --git a/src/exception.hh b/src/exception.hh index fd29017c..43ff4e68 100644 --- a/src/exception.hh +++ b/src/exception.hh @@ -17,7 +17,7 @@ struct runtime_error : exception runtime_error(String what) : m_what(std::move(what)) {} - StringView what() const override { return m_what.c_str(); } + StringView what() const override { return m_what; } private: String m_what;