Hi Alex,
On 17/08/15 02:54 PM, Alex Mohr wrote:
> On 8/17/2015 11:39 AM, Stefan Seefeld wrote:
>> For the case with default implementation, the tutorial gives this
>> wrapper:
>>
>>struct BaseWrap : Base, bpl::wrapper
>>{
>> virtual std::string func() const
>> {
>>if (bpl
On 8/17/2015 11:39 AM, Stefan Seefeld wrote:
For the case with default implementation, the tutorial gives this wrapper:
struct BaseWrap : Base, bpl::wrapper
{
virtual std::string func() const
{
if (bpl::override f = this->get_override("func"))
return f();
e
On 17/08/15 02:12 PM, Nikolay Mladenov wrote:
> If you export an abstract class, create an object from python and call
> its virtual from C++ it should not work without the default
> implementation.
The tutorial explains that well:
for the case of an abstract base, use
def("func", bpl::pure_vi
If you export an abstract class, create an object from python and call its
virtual from C++ it should not work without the default implementation.
On Mon, Aug 17, 2015 at 8:03 AM, Stefan Seefeld wrote:
> Hi,
>
> I'm reviewing the Boost.Python tutorial, and I'm stumbling over the
> section on "Vi
Hi,
I'm reviewing the Boost.Python tutorial, and I'm stumbling over the
section on "Virtual Functions with Default implementations"
(http://boostorg.github.io/python/doc/html/tutorial/tutorial/exposing.html#tutorial.exposing.virtual_functions_with_default_i).
It mentions the need to provide a sepa