<div dir="ltr">Hello,<div><font size="3"><br></font><div>I'm trying to get the hop count from a packet in a new custom policy based from existing policy (which is freshness-policy). I've tried using the example that's Alex mentioned in this mail: <a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-February/002423.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-February/002423.html</a></div><div><div><br></div><div>However, on the compiling process I still got an error message:</div><div><br></div><div><div>In file included from ../src/ndnSIM/model/cs/content-store-with-freshness.hpp:28:0,</div><div>                 from ../src/ndnSIM/model/cs/content-store-with-freshness.cpp:20:</div><div>../src/ndnSIM/model/cs/custom-policies/freshness-policy.hpp: In member function ‘bool ns3::ndn::ndnSIM::freshness_policy_traits::policy<Base, Container, Hook>::type::insert(typename ns3::ndn::ndnSIM::freshness_policy_traits::policy<Base, Container, Hook>::type::parent_trie::iterator)’:</div><div>../src/ndnSIM/model/cs/custom-policies/freshness-policy.hpp:114:27: error: expected unqualified-id before ‘typename’</div><div>      auto dataTag = data->typename getTag<Ns3PacketTag>();</div><div>                           ^</div><div><br></div><div>I've tried remove the typename declaration and the <Ns3PacketTag> but I still failed on the compilation process. I'd greatly appreciate if anyone has any advice for this problem. Thank you very much.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8px"><div dir="ltr"><i><font color="#666666">Muhamad Rizky Yanuar</font></i></div><div dir="ltr"><i><font color="#666666">23515017</font></i></div><div><i><font color="#666666"><a href="mailto:mryanuar21@gmail.com" style="color:rgb(17,85,204)" target="_blank">mryanuar21@gmail.com</a></font></i></div></div></div></div></div></div>
</div></div></div>