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]
Tom Tromey wrote:

>>>>>>"Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>>>>>>
>
>Adam>   virtual ::org::xwt::engine::PixelGrid *getPG () { return reinterpret_cast<::org::xwt::engine::PixelGrid *> (this); }
>
>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.
>

Should it be "*this" perhaps?

regards

Bryce.



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