| I believe this is indeed ANSI (though it's hard to tell for sure without the source code for traits_from). Which Stroustrup are you looking at? Which MSVC are you using?
The traits_from struct is just a template class, nothing funny there; probably traits_from is partially specialized here. It is known that both older and current GCC compilers handles partial specialization of templates better than older MSVC compilers. I'm not sure about the latest MSVC.
Regards,
Mike
-----Original Message-----
From: Victor Lazzarini
Sent: Nov 16, 2005 8:20 AM
To: csound-devel@lists.sourceforge.net
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
https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------
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 |