Wait, don't commit the patch [Re: how do I stop gcjh from generating function bodies?]
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Mon Nov 5 10:15:00 GMT 2001
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.
More information about the Java
mailing list