<html><head><meta http-equiv="Content-Type" content="text/html charset=euc-kr"><base href="x-msg://3491/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">Hi Kang,</div><div class=""><br></div><div class="">Print method is defined to return nothing:</div><div class=""><br></div><div class=""><div class="">  virtual void</div><div class="">  Print (std::ostream &os) const;</div><div class=""><br></div><div class="">So, you cannot really use it they way you tried.  But simple change should fix your problem:</div><div class=""><br></div><div class=""><span style="font-size: 14px; "> </span><span style="font-size: 14px; "> </span><span style="font-size: 14px; ">std::cout << Simulator::Now ().ToDouble (Time::S) << "\t"</span><br><span style="font-size: 14px; ">           </span><span style="font-size: 14px; "> </span><span style="font-size: 14px; "><< node->GetId () << "\t"</span><br><span style="font-size: 14px; ">           </span><span style="font-size: 14px; "> </span><span style="font-size: 14px; "><< Names::FindName (node) << "\t"</span><br><span style="font-size: 14px; ">           </span><span style="font-size: 14px; "> </span><span style="font-size: 14px; "><< pit->GetSize () << "\n";</span></div><div class=""><br><div><div style="margin: 0px; font-size: 14px; ">  pit->Print(std::cout);</div><div style="margin: 0px; font-size: 14px; ">  std::cout << "\n";</div></div><div><div><div style="margin: 0px; font-size: 14px; "><br></div><div style="margin: 0px; font-size: 14px; ">---</div><div style="margin: 0px; font-size: 14px; ">Alex</div></div></div></div></div><div class=""><br></div><div class="">PS</div><div class="">Not sure what happened, but somehow either your email client or the smtp provider completely destroyed format of your message (I had to dig in into the message source to get readable text back).  You may try to use the HTML format next time.</div><br class=""><div><div class="">On Aug 7, 2013, at 2:28 PM, °­½ΒΌ® <<a href="mailto:msukang@swu.ac.kr">msukang@swu.ac.kr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class=""><div style="margin-top: 0px; margin-bottom: 0px; " class=""><img src="http://mail.swu.ac.kr:80/nara/servlet/webmail.WebMailReConfServ/4534341" class=""></div></div></blockquote><div style="margin: 0px; font-size: 14px; "></div></div><blockquote type="cite"><div><div style="margin: 0px; font-size: 14px; ">Dear Manager,</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">I have a very simple question.</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">I'd like to use a Print() method defined in nun-pit-impl.h.</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">My slightly modified code in ndn-simple-with-pit-count-stats.cc is as follo=</div><div style="margin: 0px; font-size: 14px; ">ws.</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">void</div><div style="margin: 0px; font-size: 14px; ">PeriodicStatsPrinter (Ptr<Node> node, Time next)</div><div style="margin: 0px; font-size: 14px; ">{</div><div style="margin: 0px; font-size: 14px; ">  Ptr<ndn::Pit> pit =3D node->GetObject<ndn::Pit> ();</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">  std::cout << Simulator::Now ().ToDouble (Time::S) << "\t"</div><div style="margin: 0px; font-size: 14px; ">            << node->GetId () << "\t"</div><div style="margin: 0px; font-size: 14px; ">            << Names::FindName (node) << "\t"</div><div style="margin: 0px; font-size: 14px; ">            << pit->GetSize () << "\n"</div><div style="margin: 0px; font-size: 14px; ">            << pit->Print(std::cout) << "\n";    //  <<<=3D=3D=3D Here!!</div><div style="margin: 0px; font-size: 14px; ">}</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">When I added the pit->Print() statement, it produces a long error.</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">What will be the proper argument in the Print() method?</div><div style="margin: 0px; font-size: 14px; min-height: 16px; "><br></div><div style="margin: 0px; font-size: 14px; ">Thanks in advance</div></div><br class=""></blockquote></body></html>