Skip to content
Snippets Groups Projects

changes to exceptions that returned pointer to temporary object

Merged Jesper Andersson requested to merge remove_warnings into master
3 files
+ 6
6
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
2
@@ -39,10 +39,10 @@ class SpMatException: public std::exception
private:
std::string m_msg;
public:
SpMatException(const std::string& msg) throw(): m_msg(msg) {}
SpMatException(const std::string& msg) throw(): m_msg(std::string("SpMat::")+msg) {}
virtual const char * what() const throw() {
return std::string("SpMat::" + m_msg).c_str();
return(m_msg.c_str());
}
~SpMatException() throw() {}
Loading