Csound Csound-dev Csound-tekno Search About

[Cs-dev] SWIG generated file issues

Date2005-11-16 13:20
FromVictor Lazzarini
Subject[Cs-dev] SWIG generated file issues
I was working on building the interfaces lib today on MSVC and
one of the SWIG-generated files, the python interface C++ file, would
not build. MSVC does not seem to like this kind of stuff

template  struct traits_from {
     static PyObject *from(Type* val) {
       return traits_from_ptr::from(val, 0);
     }
   };

The issue seems to be with  struct traits_from,
which MSVC doesn't like. I never seen code such as this,
but it seems to be extending the template mechanism to
generate symbols like the struct name above (I'm not so
sure I understand it, but that's how it looks like).

Is this ANSI C++? I have been looking through my Stroustrup
and this use is not defined there.

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net