Merge pull request #432 from rec/develop

Fix dangling pointer and message in error.hpp.
This commit is contained in:
Peter Thorson committed 2015-06-02 06:59:04 -04:00
commit 2af2135d82
1 file changed
+2 -2
+2 -2
View File
@@ -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;
};