[C++-sig] Exporting an abstract class with virtual bool operator ()(int)=0

Achim H. achim-bpl at mol-net.com
Wed Mar 29 17:36:35 CEST 2006


Hi Pedro,

I would have guessed that the solution from David Abrahams was for another 
problem, a second issue with your code.

But good for you if it works without further changes.

Achim.

Am Mittwoch, 29. März 2006 17:27 schrieb Pedro Crespo Valero:
> Dear Achim,
>
> Achim H. a écrit :
> > My suggestion is to write the following:
>
> I am sorry but this is not compiling :-(
>
> > BOOST_PYTHON_MODULE(test2py)
> > {
> >     class_<condition_Wrap, bases<condition>,
> > boost::noncopyable>("condition") .def("__call__",
> > pure_virtual(&condition::operator()))
> >         ;
>
> David Abrahams solved my problem ...!!  So, just expecting it could be
> also useful for you just follow the thread here:
> http://mail.python.org/pipermail/c++-sig/2006-March/010464.html
>
> Thank you anyway for your answers



More information about the Cplusplus-sig mailing list