mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Removed unnecessary std::move, fixes #533
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user