FairMQ: add FairMQMessage::Copy(const FairMQMessage& msg), deprecate the old one.

This commit is contained in:
Alexey Rybalchenko
2017-12-08 12:02:08 +01:00
committed by Mohammad Al-Turany
parent e340a52bf2
commit ba78964e29
10 changed files with 90 additions and 21 deletions

View File

@@ -45,7 +45,7 @@ auto RunPushPullWithMsgResize(string transport, string address) -> void {
outMsg->SetUsedSize(250);
ASSERT_EQ(outMsg->GetSize(), 250);
FairMQMessagePtr msgCopy(push.NewMessage());
msgCopy->Copy(outMsg);
msgCopy->Copy(*outMsg);
ASSERT_EQ(msgCopy->GetSize(), 250);
ASSERT_EQ(push.Send(outMsg), 250);