[ROOT] Arguments which are functions and the dictionary

From: Richard S. Holmes (rsholmes@physics.syr.edu)
Date: Mon Aug 19 2002 - 23:34:33 MEST


Are the dictionary macros expected to be able to handle member functions 
which have arguments which are functions?  For example, in our ROOT based 
application there is a class with the following member:

  Double_t GetDiffF (Double_t F (TaEvent));

where TaEvent is a class declared above.  That is, GetDiffF is a function 
whose single argument is a function of a TaEvent object; e.g. I can define

  Double_t test (TaEvent e) { return e.fEventNumber; }

(if fEventNumber is a public data member of TaEvent) and then use test in 
a call to GetDiffF:

  Double_t test2 = GetDiffF (test);

All this is perfectly valid C++, it compiles and runs correctly, but when 
I go to compile the dictionary I get errors like

  TaDict.cc:1976: invalid cast to function type `Double_t () ()'

-- 
 - Richard S. Holmes / Research Asst. Prof.
   Syracuse University / Syracuse, NY



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET