Skip to content

Commit 1fc9234

Browse files
committed
fix
1 parent 5b19d4a commit 1fc9234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/cppredis/cpp_redis_response.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ namespace cpp_redis {
4747

4848
void set_results(std::string &&value)
4949
{
50-
results_.emplace_back(value);
50+
std::string copy_value = std::move(value);
51+
results_.push_back(std::move(copy_value));
5152
}
5253

5354
std::vector<std::string> get_results()

0 commit comments

Comments
 (0)