[C++-sig] pyste and virtual classes.

David Abrahams dave at boost-consulting.com
Mon Mar 31 15:02:09 CEST 2003


Giulio Eulisse <giulio.eulisse at cern.ch> writes:

> It's my understanding that if I exclude() some virtual function out of a
> pystified class, pyste generates a code which is not compilable because
> the compiler complains about abstract functions being present in the
> wrapper class as wrapper methods for excluded one are not generate by
> pyste.

That will only happen if the function is pure virtual in the class
being wrapped.

> I think it would be nice to have some wrapper code being generated
> anyway(maybe just throwing some exception) so that one can exclude
> safely virtual methods out of a class interface.

That sounds really questionable to me.  Why not just derive a class
from the abstract class, override the virtual function yourself, and
wrap that?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list