Removed unnecessary std::move, fixes #533

This commit is contained in:
Dr. Patrick Urbanke
2025-11-04 21:33:48 +01:00
parent 920caef563
commit 7c8c62a3ea
@@ -17,7 +17,7 @@ inline std::string to_single_error_message(
std::optional<std::string> _msg_prefix = std::nullopt,
size_t _err_limit = 10) {
if (_errors.size() == 1) {
return std::move(_errors[0].what());
return _errors[0].what();
} else {
std::stringstream stream;
stream << (_msg_prefix