[C++-sig] Wrapping a factory

David Abrahams dave at boost-consulting.com
Thu Jan 23 05:32:54 CET 2003


David Abrahams <dave at boost-consulting.com> writes:

> Ben Scott <bscott at iastate.edu> writes:
>
>> Hi again. I'm playing around with the factory code I
>> asked for help on before
>> (http://mail.python.org/pipermail/c++-sig/2003-January/003217.html)
>> and have changed things around a bit (as my library has
>> changed). You'll notice that the only difference from
>> before is that the creator no longer requires an
>> argument to the create() method.
>>
>> Unfortunately, I've gotten stuck again and am looking
>> for somebody to point me in the right direction. I just
>> can't seem to get my C++ Factory object to see the
>> correct type of my python Creator object as you can see
>> in the following output. It appears to only know about
>> the Creator base type and be unable to call into the
>> implementation's method.
>
> You've uncovered a bug in Boost.Python.  Thank you!
>
> I've got a fix; I'm just testing it now to make sure it doesn't break
> anything else and I'll let you know when it's checked in.

OK, done.  Thanks again for the report.

-Dave

-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list