diff options
-rw-r--r-- | vespalib/src/tests/ref_counted/ref_counted_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/ref_counted/ref_counted_test.cpp b/vespalib/src/tests/ref_counted/ref_counted_test.cpp index cba3b1cda90..d831e664374 100644 --- a/vespalib/src/tests/ref_counted/ref_counted_test.cpp +++ b/vespalib/src/tests/ref_counted/ref_counted_test.cpp @@ -43,7 +43,7 @@ void (*copy_assign_ref_counted_leaf)(ref_counted<Leaf>& lhs, const ref_counted<L void move_assign_ref_counted_leaf_real(ref_counted<Leaf>& lhs, ref_counted<Leaf>&& rhs) { - lhs = rhs; + lhs = std::move(rhs); } void (*move_assign_ref_counted_leaf)(ref_counted<Leaf>& lhs, ref_counted<Leaf>&& rhs) = move_assign_ref_counted_leaf_real; |