From: Josh C. <jc...@nc...> - 2010-02-25 18:45:20
|
On Thu, 25 Feb 2010, Michael Ellery wrote: > I have a particular class that inherits publicly from std::map, and has > a few of its own methods. I'm building a perl module that includes this > class. The wrappers are getting generated for this class, but I can't > figure out how to interact with the map baseclass methods of this object. ... > Any ideas what I might be doing wrong? I have %template directives in my > .i file to force an instantiation of both the base class (std::map) and > my subclass. Advice appreciated. I would check that the base class is actually being wrapped (correctly) and that the subclass actually inherits from it in Perl (you should be able to see this by looking at the generated .pm file). The problem may have to do with the order of things in your interface file (e.g., whether the %template comes before the derived class declaration). Josh |