Merge pull request #432 from rec/develop
Fix dangling pointer and message in error.hpp.
This commit is contained in:
commit
2af2135d82
1 file changed
+2
-2
@@ -250,7 +250,7 @@ public:
|
||||
{}
|
||||
|
||||
explicit exception(lib::error_code ec)
|
||||
: m_code(ec)
|
||||
: m_msg(ec.message()), m_code(ec)
|
||||
{}
|
||||
|
||||
~exception() throw() {}
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
return m_code;
|
||||
}
|
||||
|
||||
std::string m_msg;
|
||||
const std::string m_msg;
|
||||
lib::error_code m_code;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user