Require std::move when adding existing message to FairMQParts.

This commit is contained in:
Alexey Rybalchenko
2017-01-05 14:15:05 +01:00
committed by Mohammad Al-Turany
parent 65c19f07bf
commit ac1da4db66
2 changed files with 6 additions and 6 deletions

View File

@@ -41,10 +41,10 @@ class FairMQParts
/// Adds part (std::unique_ptr<FairMQMessage>&) to the container (move)
/// @param msg unique pointer to FairMQMessage
/// lvalue ref (move not required when passing argument)
inline void AddPart(std::unique_ptr<FairMQMessage>& msg)
{
fParts.push_back(std::move(msg));
}
// inline void AddPart(std::unique_ptr<FairMQMessage>& msg)
// {
// fParts.push_back(std::move(msg));
// }
/// Adds part (std::unique_ptr<FairMQMessage>&) to the container (move)
/// @param msg unique pointer to FairMQMessage