Rootcint syntax error with pointer to function

Dear all,

in my code, I have a class called TYellin. In the corresponding header file I define a private member which takes a pointer to another member function of the same class:

Bool_t BracketZero(double(TYellin::*func)(const double), double &x1, double &x2);

Up to now, with ROOT 5.16, everything went fine with this.
However, now that I am using ROOT 5.20, rootcint complains about a syntax error in this line when trying to create the dictionary.

Was there any change in the way one should do something like this?

Thanks for any hint towards a solution!

[quote]Thanks for any hint towards a solution![/quote]I will take a look as soon as possible. However since this member is private you can always hide it from CINT:#ifndef __CINT__ Bool_t BracketZero(double(TYellin::*func)(const double), double &x1, double &x2); #endif

Cheers,
Philippe[/i]

Hi,

To solve the problem (yes the CINT parser is too picky :slight_smile:) add a space between the return type and the paranthesis in your function parameter type:Bool_t BracketZero(double (TObject::*func)(const double), double &x1, double &x2);

Cheers,
Philippe.

Dear Philippe,

thank you very much, this was the point! Now everything is fine.

Cheers,

Jens