<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>&gt;On 8/23/07, Jeff Winkelman &lt;<a href="http://mail.python.org/mailman/listinfo/c++-sig">winkatl1213 at yahoo.com</a>&gt; wrote:<br>&gt;&gt;<i><br></i>&gt;&gt;<i> Hello,<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> I am using py++ for the first time to wrap a decent sized C++ library.<br></i>&gt;&gt;<i> We've been using SWIG for this library for several years and have recently<br></i>&gt;&gt;<i> discovered some significant memory leaks.  I upgraded to the latest version<br></i>&gt;&gt;<i> of SWIG which resulted in huge increase in compile times and no resolution<br></i>&gt;&gt;<i> to the issue.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> So, I've decided to see if boost would handle the situation better.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> I am able to successfully generate a wrapper file
 using py++, however, some<br></i>&gt;&gt;<i> of the template instances that are declared in one of the header files are<br></i>&gt;&gt;<i> not exposed in the wrapper.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> I've read several suggestions on the py++ website, and even tried wrapping<br></i>&gt;&gt;<i> these template instances in a pyplusplus::aliases namespace as suggested in<br></i>&gt;&gt;<i> the py++ "hints" section.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> This eliminated some warnings, but didn't result in code being added for</i><br>&gt;&gt;<i> these objects.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> Does anyone have an idea of why these instances are not be wrapped?<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> I've included the header files I'm trying to wrap along with my py++ script<br></i>&gt;&gt;<i> that I'm using.<br></i>&gt;<br>&gt;What template class(es) you try to expose?<br>&gt;<br>&gt;-- <br>&gt;Roman Yakovenko<br>&gt;C++ Python language binding<br><a
 href="http://www.language-binding.net/">&gt;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&lt;EBW1&gt; EROIBW1;<br>typedef EROI&lt;EBW8&gt; EROIBW8;<br>typedef EROI&lt;EBW16&gt; EROIBW16;<br>typedef EROI&lt;EBW32&gt; EROIBW32;<br>typedef EROI&lt;EC15&gt; EROIC15;<br>typedef EROI&lt;EC16&gt; EROIC16;<br>typedef EROI&lt;EC24&gt; EROIC24;<br>typedef EROI&lt;EYUY2&gt; EROIYUY2;<br>typedef EROI&lt;EC24A&gt; EROIC24A;<br>typedef EROI&lt;ESubPixel64&gt; EROISubPixel64;<br>typedef EROI&lt;EComplex64&gt; EROIComplex64;<br>typedef EROI&lt;ERaw32&gt; EROIRaw32;<br>typedef EROI&lt;ERaw96&gt; EROIRaw96;<br>typedef EROI&lt;EFLOAT32&gt; EROIFLOAT32;<br>typedef EROI&lt;EFLOAT64&gt; EROIFLOAT64;<br><br>// Predefined image types<br>typedef EImage&lt;EBW1&gt; EImageBW1;<br>typedef
 EImage&lt;EBW8&gt; EImageBW8;<br>typedef EImage&lt;EBW16&gt; EImageBW16;<br>typedef EImage&lt;EBW32&gt; EImageBW32;<br>typedef EImage&lt;EC15&gt; EImageC15;<br>typedef EImage&lt;EC16&gt; EImageC16;<br>typedef EImage&lt;EC24&gt; EImageC24;<br>typedef EImage&lt;EYUY2&gt; EImageYUY2;<br>typedef EImage&lt;EC24A&gt; EImageC24A;<br>typedef EImage&lt;ESubPixel64&gt; EImageSubPixel64;<br>typedef EImage&lt;EComplex64&gt; EImageComplex64;<br>typedef EImage&lt;ERaw32&gt; EImageRaw32;<br>typedef EImage&lt;ERaw96&gt; EImageRaw96;<br>typedef EImage&lt;EFLOAT32&gt; EImageFLOAT32;<br>typedef EImage&lt;EFLOAT64&gt; 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>