From: William S F. <ws...@fu...> - 2007-01-25 23:54:20
|
Nitro wrote: > Am 24.01.2007, 22:52 Uhr, schrieb William S Fulton > <ws...@fu...>: > >> Nitro wrote: >>> Am 23.01.2007, 06:09 Uhr, schrieb Haimo Zobernig >>> <Hai...@ce...>: >>> >>>> Hello, >>>> >>>> Using: Swig 1.3.31, C++, Python2.4.2, Linux >>>> I am getting a syntax error in a templated class forward declaration, >>>> like this >>>> >>>> % swig -Wall -c++ -python -classic -I<somepath> -o A_wrap.cxx A.i >>>> >>>> <somepath>/someplace/B.hh:29: Error: Syntax error in input(1). >>>> >>>> How can I get around this without changing the header file, which I >>>> don't own? >>>> My %ignore aClassIwantToIgnore; seems to have now effect. >>> >>> Instead of %including the header you can always copy it into the >>> interface >>> file, delete the offending line and that's it. >>> >> Mmm, yup, SWIG doesn't seem to parse some forward templated class >> declarations. Please log this as a bug noting that: >> >> template <class A, class B, class C> class aClassIwantToIgnore; >> >> parses okay, but the following does not: >> >> template <class, class, class> class aClassIwantToIgnore; >> >> I'm afraid I can't think of any other workarounds. >> >> William >> > > That bug is already two times in the db ( > http://sourceforge.net/tracker/index.php?func=detail&aid=1538522&group_id=1645&atid=101645 > and > http://sourceforge.net/tracker/index.php?func=detail&aid=1338527&group_id=1645&atid=101645 > ), so no need to log it again. > Indeed so it is. I've just fixed it though in svn, if you want give it a whirl. William |