From bb14f2af529d9162b409bff73ee2c402b603a91f Mon Sep 17 00:00:00 2001 From: cub Date: Sun, 16 Sep 2018 22:26:28 -0300 Subject: [PATCH] removed move semantics on append call append takes an lvalue so move semantics are never invoked? --- src/messages/MessageBuilder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/MessageBuilder.hpp b/src/messages/MessageBuilder.hpp index d3cbdb8d0..f1641c282 100644 --- a/src/messages/MessageBuilder.hpp +++ b/src/messages/MessageBuilder.hpp @@ -55,7 +55,7 @@ public: auto unique = std::make_unique(std::forward(args)...); auto pointer = unique.get(); - this->append(std::move(unique)); + this->append(unique); return pointer; }