If you mean doing<br><br>class derived_wrap: public derived, public boost::python::wrapper<derived>, public boost::python::wrapper<base> {<br> void method2() {....}<br>};<br><br>This doesn't compile. It throw the error
<span style="font-style: italic;">ambiguous access of 'get_override'</span> inside the function method2(). I guess it creates a confusion to which class to overwrite (just a guess!!).<br>Luca<br><br><br><br><br><div>
<span class="gmail_quote">On 11/06/07, <b class="gmail_sendername">Roman Yakovenko</b> <<a href="mailto:roman.yakovenko@gmail.com">roman.yakovenko@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/11/07, Luca Sbardella <<a href="mailto:luca.sbardella@gmail.com">luca.sbardella@gmail.com</a>> wrote:<br>> The link doesn't answer the question, or at least I do not see the answer.<br>><br>> At first, I though that using the following approach would work
<br>><br>><br>> class derived_wrap: public derived, public<br>> boost::python::wrapper<derived> {<br>> void method2() {....}<br>> };<br><br>You can derive from boost::python::wrapper< base > class too. I think
<br>this will do what you want.<br><br>--<br>Roman Yakovenko<br>C++ Python language binding<br><a href="http://www.language-binding.net/">http://www.language-binding.net/</a><br>_______________________________________________
<br>C++-sig mailing list<br><a href="mailto:C++-sig@python.org">C++-sig@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/c++-sig">http://mail.python.org/mailman/listinfo/c++-sig</a><br></blockquote></div>
<br>