SIP Python bindings generator - nested templates

Phil Thompson phil at river-bank.demon.co.uk
Fri Jan 17 10:59:52 CET 2003


On Friday 17 January 2003 9:43 am, Pakewak wrote:
> Jim wrote:
> > // in your sip files, you can either assign
> > // a new name to the template type, or just
> > // use it as the identifier - sip will accept
> > // the <'s and >'s as part of the identifier
> > %MappedType plSMat<plSquareMatrix<double>, 3>
>
> The line above causes a parse error. When I remove the second template
> parameter it works:
>
> %MappedType plSMat<plSquareMatrix<double>>

That's why you have to invent a new type to keep SIP happy - which is what 
you've done.

Phil





More information about the Python-list mailing list