<div class="gmail_quote">On Fri, Sep 30, 2011 at 12:28, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> But the method is like a "friend" in the sense that it can access members through an explicit pointer.<br>
<br>
</div>Can you please expand a bit on this one? What is an explicit pointer?</blockquote></div><br><div>Cast the void* to a MyClass*, then access all the members through that pointer. It will look like a normal member function except that there is no implicit "this", you have to explicitly use the MyClass* to access non-static members.</div>