<div dir="ltr">Hello Researchers<div>Greetings</div><div>I want to access the variable of the Forwarder class in my main function. For this I included the namespace<b> nfd </b>in my main file. </div><div>           Suppose I want to access the  <b>public</b> variable <b>cacheHitRatio  </b>of the Forwarder class. I wrote the following code in my main class:-</div><div><br></div><div>           <i> Forwarder  F; </i></div><div><i>            std::cout<<F.cacheHitRatio<<std::endl</i></div><div>     </div><div><br></div><div><br></div><div> I got the following error:</div><div><i>error: no matching function for call to ‘nfd::Forwarder::Forwarder()’<br>  371 |    Forwarder F;</i><br></div><div><br></div><div>Please help me to access the variable. Thanks in advance<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)">Thanks & Regards<br></div><div><font color="#444444" face="georgia, serif" size="4">Subodh Mishra</font></div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)"><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font color="#000000" face="times new roman, serif"><span style="font-size:small">Research Scholar (Ph.D),</span><br></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">Department of Computer Science and Engineering,</font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">PDPM-Indian Institute of Information Technology, </font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><font size="2" color="#000000" face="times new roman, serif">Design and Manufacturing, Jabalpur</font></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><br></div></div><div style="color:rgb(34,34,34);font-size:12.8px"><font color="#000000">Email: 1911602 [at] iiitdmj [dot] ac [dot] in ,</font></div><div style="color:rgb(34,34,34);font-size:12.8px"><font color="#000000">           subodhkmishra [at] gmail [dot] com</font></div></div></div></div></div>