<div dir="ltr"><div><div>Hi, <br><br></div>I'm trying to create new Interest packet from an existing one. The function will be passed existing Interest in parameter e.g.,<br><br><span style="font-family:tahoma,sans-serif">Interest& createTemporaryInterest(const Interest& interest){<br>          shared_ptr<Interest> tempInterest = Interest(interest);<br>          const Name& tempName = "...";<br clear="all"></span><div><div><span style="font-family:tahoma,sans-serif">          tempInterest->setName(</span><wbr><span style="font-family:tahoma,sans-serif">tempName);</span></div></div></div><span style="font-family:tahoma,sans-serif">          return tempInterest;<br></span><div><span style="font-family:tahoma,sans-serif">}<br></span><span style="font-family:tahoma,sans-serif"></span><br><div><div>Basically I need all properties of an Interest copied to another interest. Then I'll set custom name of newly created Interest. So, In short, the newly created Interest will have all properties of existing one but the name.<br><br></div><div>How can I achieve this? Please help.<br></div><div><br>-- <br><div class="m_-7160150495295786079gmail-m_-3294749084534071352gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:georgia,serif">Regards,<br></span></div><div><span style="font-family:georgia,serif">Mudasir Qazi<br></span></div></div></div></div></div></div></div></div></div>
</div></div></div></div>