Re: [C++-sig] Boost python exposing abstract class , function returning boost::shared_ptr

2015-03-30 Thread warin
Hi Holger Thank you very much. A little bit ugly but it works. Even using std::shared_ptr instead of boost::shared_ptr Best regards ___ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] Boost python exposing abstract class , function returning boost::shared_ptr

2015-03-28 Thread warin
> I'm not top posting. Hi Holger Thank you for the reply. It compiles but same error on execution. Sincerely yours Xavier ___ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig

[C++-sig] Boost python exposing abstract class , function returning boost::shared_ptr

2015-03-27 Thread warin
> I'm not top posting. I have an abstract class A2, with derived class B2. I want to map a function returning a boost::shared_ptr of A. This abstract class is wrapped : struct A2{ virtual ~A2(){} virtual int ret() =0; }; struct B2: public A2{ virtual ~B2(){} int ret() { return 1; } };