This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Wait, don't commit the patch [Re: how do I stop gcjh from generating function bodies?]

[Get raw message]
>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

Adam>   virtual ::org::xwt::engine::PixelGrid *getPG () { return reinterpret_cast<::org::xwt::engine::PixelGrid *> (this); }

Adam> Which isn't compiling -- here's the error:

Adam>     [apply] In file included from /home/megacz/valency/xwt/src/org/xwt/engine/boot/natGSurface.cc:6:
Adam>     [apply] src/org/xwt/engine/boot/GSurface.h: In member function `virtual 
Adam>     [apply]    org::xwt::engine::PixelGrid* org::xwt::engine::boot::GSurface::getPG()':
Adam>     [apply] src/org/xwt/engine/boot/GSurface.h:58: parse error before `;' token

What version of g++ are you using?

Adam> Unfortunately my knowledge of C++ templates is really poor, so I
Adam> can't figure out why it won't work.

This isn't a template but is a cast.
Offhand I don't see anything wrong with the above code.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]