Section 12.1 of the lua docs shows how to derive a class in lua from a c++
class using a wrapper. However, how do you do this when the base class
inherits from another class? For example, if the base class in Section 12.1
inherited from a "guitar" class, would the class_ binding look like this?
class_<base, guitar, base_wrapper>("base")
.def("f", &base::f, &base_wrapper::default_f)
That syntax compiles for me, but I'm occasionally getting segfaults when
calling virtual methods on the base class. I'm hoping that I'm not binding
it correctly, because the segfaults are intermittent and I'm struggling to
track it down.