From 2f9d1b7a1fb27c0ff4f2dcb08d849197e0cc6503 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 29 Aug 2022 17:26:25 +0200 Subject: [PATCH] fix const correctness --- exceptions/exceptions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exceptions/exceptions.h b/exceptions/exceptions.h index e634df7..b54ddb6 100644 --- a/exceptions/exceptions.h +++ b/exceptions/exceptions.h @@ -59,14 +59,14 @@ public: Use the E_INFOS macro to raise the exception, for example : throw( Exception( "Shit evolves", E_INFOS ); */ - Exception( const std::string & desc, const std::string & func, const std::string & f, const int l ) + Exception( const std::string & desc, const std::string & func, const std::string & f, const int l ) : description(desc), function(func), file(f), line(l) {} //! The destructor is not allowed to throw exceptions virtual ~Exception() throw () {} //! The method to use for printing the complete description of the exception - std::string what() + std::string what() const { std::ostringstream msg; msg << description << " (<" << name << "> in " << function << " at " << file << ":" << line << ")";