On Sat, Jul 18, 2009 at 10:59 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, 18 Jul 2009 22:42:31 +0200, Arve Knudsen <<a href="mailto:arve.knudsen@gmail.com">arve.knudsen@gmail.com</a>><br>
wrote:<br>
<div><div></div><div class="h5">> Hi Phil<br>
><br>
> In my attempt to wrap the new Qt animation classes, as requested by Jason<br>
> H,<br>
> I find that I'm not able declare a function-pointer typedef within a<br>
class.<br>
> According to the SIP syntax specification it seems perfectly possible,<br>
> however. Can you please tell me why the following declaration from<br>
> QEasingCurve doesn't work:<br>
><br>
> class EasingCurve<br>
> {<br>
> [...]<br>
> public:<br>
> typedef qreal (*EasingFunction)(qreal progress);<br>
> [...]<br>
> };<br>
<br>
</div></div>It's a bug - just remove the name of the argument.<font color="#888888"></font></blockquote><div><br>Thanks, you're right. Looks like I'll have to wrap the function-pointer by hand though, am I right (sip says I have to "provide %Metod code")? I'm guessing you should fix sip's error message to say "%MethodCode" instead of "%Method code".<br>
<br>Arve <br></div></div>