<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Sans Serif">
<p>On Wednesday 16 July 2008 16:12, Erick Tryzelaar wrote:</p>
<p>> I've got a simple sip file that has:</p>
<p>></p>
<p>> struct Foo {</p>
<p>> %TypeHeaderCode</p>
<p>> #include "foo.h"</p>
<p>> %End</p>
<p>></p>
<p>> virtual Foo();</p>
<p>> };</p>
<p>></p>
<p>> struct Bar: Foo {</p>
<p>> %TypeHeaderCode</p>
<p>> #include "foo.h"</p>
<p>> %End</p>
<p>></p>
<p>> virtual Bar();</p>
<p>> };</p>
<p>></p>
<p>></p>
<p>> That should be valid code though, right?</p>
<p></p>
<p></p>
<p>It's valid C++, sip may or may not accept it (sip only covers a meaningful subset of C++), and it's identical to the following code which sip will accept:</p>
<p></p>
<p>class Foo {</p>
<p>%TypeHeaderCode</p>
<p>#include "foo.h"</p>
<p>%End</p>
<p></p>
<p>public:</p>
<p> virtual Foo();</p>
<p>};</p>
<p></p>
<p>class Bar: Foo {</p>
<p>%TypeHeaderCode</p>
<p>#include "foo.h"</p>
<p>%End</p>
<p></p>
<p>public:</p>
<p> virtual Bar();</p>
<p>};</p>
<p></p>
<p>Jim</p>
</body></html>