RE:Re: RE:[bv@bnl.gov: [ROOT] Method(const

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Fri Mar 09 2001 - 12:24:41 MET


Hello Brett, 

I fixed this according to your information.

Thank you
Masaharu Goto

>What ever gets passed to the ``Get(const char*&)'' method must be a
>`const char*&' so the following is what is needed:
>
> ((const blah*)(G__getstructoffset()))->Get(libp->para[0].ref?*(const 
char**)libp->para[0].ref:*(const char**)(&G__Mlong(libp->para[0])));
>
>
>So, yes, the casts should be to `const char**' and not just `char **'.
>I tested this by changing the generated file and recompiling and it
>indeed works.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET