I have pyplusplus churning out code, now I&#39;m trying to get it to resemble what I need. I need to use <tt class="descname">add_override_precall_code</tt>, to add some thread locking to my overrides, but I can&#39;t seem to figure out how to use it from the docs. Also, I have a set of overloaded virtual functions, and previously I&#39;ve had a wrapper class where the python exports rename the overloads, like so:<br>
<br>class Connection<br>{<br>    virtual void Callback(const Type_A&amp;);<br>    virtual void Callback(const Type_B&amp;);<br>}<br><br>the wrapper looked like:<br><br>ConnectionWrap : Connection, wrapper&lt;Connection&gt;<br>
{<br>    void Callback(const Type_A&amp; arg) <br>    {<br>        ScopedGILLock lock(m_state); // the reason I&#39;m trying to figure out add_override_porecall_code<br>        if (override o = this-&gt;get_override(&quot;Callback_Type_A&quot;)) <br>
        { o(arg);  } <br>    }<br>};<br><br><br>I&#39;m getting the rest of the override as above, but setting use_overload_macro doesn&#39;t rename the overloads as I need. Any clues (since pointers are references are both &#39;overloaded&#39; in this context&#39;)<br>
<br>