do not take a std::string by value in runtime_error constructor
This commit is contained in:
parent
ded05bb5d3
commit
583de3ba6e
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user