Skip to content

call base class's functions from a 3rd level derived class does not resolve #13

@GoogleCodeExporter

Description

@GoogleCodeExporter
if I expose the hierarchy below, foo function fails to resolve when called from 
a C object.

=======================

Lua :

b = B()  
c = C()  

print(b:foo())  -- works
print(c:foo())  -- doesn't work

=======================

c++:

struct A
{
 const char* foo() const { return "foo"; }
};

struct B : public A
{
};

struct C: public B
{
};


SLB::Class<A>("A")
.constructor()
.set("foo", &A::foo);

SLB::Class<B>("B")
.inherits<A>()
.constructor();

SLB::Class<C>("C")
.inherits<B>()
.constructor();

Original issue reported on code.google.com by dma...@gmail.com on 22 Oct 2011 at 7:32

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions