Use class member functions as callbacks?
<p>I would need a member function to be passed into a third party external method:</p>

<pre><code>box_self_intersection_d(mycallback);
</code></pre>

<p>The <code>box_self_intersection_d</code> is a third party external static method, and I cannot modify it. <code>mycallback</code> is a method I want to pass it into the <code>box_self_intersection_d</code>, it is a class function and is accessing some members in this class ( have full control for this class and the <code>mycallback</code>)</p>

<p>Is there anyway I can use class member functions as callbacks without declaring them as static functions?</p>

<p>Edit: the signature of <code>mycallback</code> is <code>(const box &amp;boxA, const box &amp;boxB)</code>, where <code>box</code> is a special class from the third party provider. </p>

<p>And the <a href="http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Box_intersection_d_ref/Function_box_self_intersection_d.html" rel="nofollow">signature for</a>  <code>box_self_intersection_d</code> is</p>

<pre><code>void box_self_intersection_d(RandomAccessIterator begin,RandomAccessIterator end,Callback callback)
</code></pre>
