<div dir="ltr"><div>Thanks Phil.</div><div>I guess that I could do a small hack by returning an integer here instead of an enum entry.</div><div><br></div><div>Cheers,</div><div>Denis</div><br><div class="gmail_quote"><div dir="ltr">Le lun. 2 avr. 2018 à 10:35, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2 Apr 2018, at 1:30 pm, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>> wrote:<br>
><br>
> Hi all, hi Phil,<br>
><br>
> I have a C++ template based method as follows:<br>
><br>
> template<class T><br>
> T myMethod( T &myVar );<br>
><br>
> In this method, T is expected to be an enum (not knowing which enum of course).<br>
><br>
> I get a syntax error when I use the same code in sip.<br>
><br>
> Is there a way to get around this?<br>
> I suspect that's not possible, but would like to be sure!<br>
<br>
You are right I'm afraid. I consider it a bug but I haven't got around to fixing it.<br>
<br>
Phil</blockquote></div></div>