do not take a std::string by value in runtime_error constructor

This commit is contained in:
Maxime Coste 2012-03-04 20:10:09 +00:00
parent ded05bb5d3
commit 583de3ba6e

View File

@ -14,7 +14,7 @@ struct exception
struct runtime_error : exception struct runtime_error : exception
{ {
runtime_error(const std::string description) runtime_error(const std::string& description)
: m_description(description) {} : m_description(description) {}
std::string description() const { return m_description; } std::string description() const { return m_description; }