mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
FairMQ: add FairMQMessage::Copy(const FairMQMessage& msg), deprecate the old one.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
e340a52bf2
commit
ba78964e29
@@ -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);
|
||||
|
Reference in New Issue
Block a user