On 20/05/2010, at 11:03 PM, Kun Hong wrote:
Hi,
I have a maybe entry-level question. But it really troubled me for a
while.
I need to wrap a C++ library which has some factory method to return
references to some abstract base classes. So the implementation is
hidden. If I want a python equival
2010/5/20 Kun Hong
>
>
> class B
> {
> public:
>virtual const char *getName() const = 0;
> };
>
> BOOST_PYTHON_MODULE(Test)
> {
>
>class_
>("B", no_init)
>.def("getName", pure_virtual(&B::getName))
>;
>
>def("getB", &getB,
> return_value
Hi,
I have a maybe entry-level question. But it really troubled me for a
while.
I need to wrap a C++ library which has some factory method to return
references to some abstract base classes. So the implementation is
hidden. If I want a python equivalent to the abstract base class
reference