<div class="gmail_quote">On Sat, Oct 1, 2011 at 12:28, Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":3rf">Yes, thanks, this works. I somehow did not realize I can pass &#39;this&#39;<br>
as the context.<br>
However, it has a serious drawback, that all the members the<br>
out-of-class function needs to access must be public. I guess I will<br>
have to live with this for now, but if you have some ideas to somehow<br>
make the function a &quot;friend&quot; of my class, I am all ears...</div></blockquote></div><br><div>As mentioned above, make the callback function a static member of the class.</div>