[C++-sig] Py++ unable to expose an abstract class that inherits from another abstract class

Roman Yakovenko roman.yakovenko at gmail.com
Wed Sep 19 09:04:15 CEST 2007


On 9/19/07, Anand, Kumar <kanand at qualcomm.com> wrote:
>
> Problem:
> -----------
> Py++ is unable to expose an abstract class (say Abstract2) that inherits
> from another abstract class (say Abstract1), if none of the pure virtual
> functions in Abstarct2 are exposed. This is because Py++ always tries to
> expose the pure virtual function of base Abstract1 class on the
> Abstract2_wrapper class and there seems to be no way to control the
> exposure of these base class functions. Look at the example code below
> for clarification:
>
> --------------------------Example:
> ------------------------------------------------------------------------
>
> --------------------C++ code----------------------------
>
> class Abstract1
> {
> public:
>    void virtual func1() =0;
> };
>
> class Abstract2 : public Abstract1
> {
> public:
>    void virtual func2() =0;
> };
>
>

Thanks for bug reporting. Technically you are right, but ... Why do you want
to exclude pure virtual function? It doesn't make sense to me.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070919/68a1aa62/attachment.htm>


More information about the Cplusplus-sig mailing list