removed move semantics on append call

append takes an lvalue so move semantics are never invoked?
This commit is contained in:
cub 2018-09-16 22:26:28 -03:00 committed by GitHub
parent bad9d5e521
commit bb14f2af52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ public:
auto unique = std::make_unique<T>(std::forward<Args>(args)...); auto unique = std::make_unique<T>(std::forward<Args>(args)...);
auto pointer = unique.get(); auto pointer = unique.get();
this->append(std::move(unique)); this->append(unique);
return pointer; return pointer;
} }