<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div><pre>>On 8/23/07, Jeff Winkelman <<a href="http://mail.python.org/mailman/listinfo/c++-sig">winkatl1213 at yahoo.com</a>> wrote:<br>>><i><br></i>>><i> Hello,<br></i>>><i><br></i>>><i> I am using py++ for the first time to wrap a decent sized C++ library.<br></i>>><i> We've been using SWIG for this library for several years and have recently<br></i>>><i> discovered some significant memory leaks. I upgraded to the latest version<br></i>>><i> of SWIG which resulted in huge increase in compile times and no resolution<br></i>>><i> to the issue.<br></i>>><i><br></i>>><i> So, I've decided to see if boost would handle the situation better.<br></i>>><i><br></i>>><i> I am able to successfully generate a wrapper file
using py++, however, some<br></i>>><i> of the template instances that are declared in one of the header files are<br></i>>><i> not exposed in the wrapper.<br></i>>><i><br></i>>><i> I've read several suggestions on the py++ website, and even tried wrapping<br></i>>><i> these template instances in a pyplusplus::aliases namespace as suggested in<br></i>>><i> the py++ "hints" section.<br></i>>><i><br></i>>><i> This eliminated some warnings, but didn't result in code being added for</i><br>>><i> these objects.<br></i>>><i><br></i>>><i> Does anyone have an idea of why these instances are not be wrapped?<br></i>>><i><br></i>>><i> I've included the header files I'm trying to wrap along with my py++ script<br></i>>><i> that I'm using.<br></i>><br>>What template class(es) you try to expose?<br>><br>>-- <br>>Roman Yakovenko<br>>C++ Python language binding<br><a
href="http://www.language-binding.net/">>http://www.language-binding.net/</a><br><br>Roman,<br><br>They are the template instances defined in the bottom of the Easy_EImage.h file.<br><br>I'll list them here for reference:<br><br>// Predefined ROI types<br>typedef EROI<EBW1> EROIBW1;<br>typedef EROI<EBW8> EROIBW8;<br>typedef EROI<EBW16> EROIBW16;<br>typedef EROI<EBW32> EROIBW32;<br>typedef EROI<EC15> EROIC15;<br>typedef EROI<EC16> EROIC16;<br>typedef EROI<EC24> EROIC24;<br>typedef EROI<EYUY2> EROIYUY2;<br>typedef EROI<EC24A> EROIC24A;<br>typedef EROI<ESubPixel64> EROISubPixel64;<br>typedef EROI<EComplex64> EROIComplex64;<br>typedef EROI<ERaw32> EROIRaw32;<br>typedef EROI<ERaw96> EROIRaw96;<br>typedef EROI<EFLOAT32> EROIFLOAT32;<br>typedef EROI<EFLOAT64> EROIFLOAT64;<br><br>// Predefined image types<br>typedef EImage<EBW1> EImageBW1;<br>typedef
EImage<EBW8> EImageBW8;<br>typedef EImage<EBW16> EImageBW16;<br>typedef EImage<EBW32> EImageBW32;<br>typedef EImage<EC15> EImageC15;<br>typedef EImage<EC16> EImageC16;<br>typedef EImage<EC24> EImageC24;<br>typedef EImage<EYUY2> EImageYUY2;<br>typedef EImage<EC24A> EImageC24A;<br>typedef EImage<ESubPixel64> EImageSubPixel64;<br>typedef EImage<EComplex64> EImageComplex64;<br>typedef EImage<ERaw32> EImageRaw32;<br>typedef EImage<ERaw96> EImageRaw96;<br>typedef EImage<EFLOAT32> EImageFLOAT32;<br>typedef EImage<EFLOAT64> EImageFLOAT64;<br><br>Jeff<br></pre></div></div><br>
<hr size=1>Moody friends. Drama queens. Your life? Nope! - their life, your story.<br> <a href="http://us.rd.yahoo.com/evt=48224/*http://sims.yahoo.com/">Play Sims Stories at Yahoo! Games. </a></body></html>