diff --git a/src/common/error.h b/src/common/error.h index 2618216b3..bc88d2c1e 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -31,7 +31,7 @@ public: ALWAYS_INLINE Type GetType() const { return m_type; } ALWAYS_INLINE bool IsValid() const { return (m_type != Type::None); } ALWAYS_INLINE const std::string& GetDescription() const { return m_description; } - ALWAYS_INLINE std::string TakeDescription() { return std::move(m_description); } + ALWAYS_INLINE std::string&& TakeDescription() { return std::move(m_description); } void Clear();