[C++-sig] py++ and templates
roman.yakovenko at gmail.com
Thu Aug 23 19:53:39 CEST 2007
On 8/23/07, Jeff Winkelman <winkatl1213 at yahoo.com> wrote:
> I am using py++ for the first time to wrap a decent sized C++ library.
> We've been using SWIG for this library for several years and have recently
> discovered some significant memory leaks. I upgraded to the latest version
> of SWIG which resulted in huge increase in compile times and no resolution
> to the issue.
> So, I've decided to see if boost would handle the situation better.
> I am able to successfully generate a wrapper file using py++, however, some
> of the template instances that are declared in one of the header files are
> not exposed in the wrapper.
> I've read several suggestions on the py++ website, and even tried wrapping
> these template instances in a pyplusplus::aliases namespace as suggested in
> the py++ "hints" section.
> This eliminated some warnings, but didn't result in code being added for
> these objects.
> Does anyone have an idea of why these instances are not be wrapped?
> I've included the header files I'm trying to wrap along with my py++ script
> that I'm using.
What template class(es) you try to expose?
C++ Python language binding
More information about the Cplusplus-sig