Hi Axel,
Axel Naumann <Axel.Naumann_at_cern.ch> writes:
> named macros are proper C++, and as such they follow the scoping rules
> of C++. End of function means end of life for function-local variables -
> your TF2 is destructed at the end of the function. Simply create it on
> the heap instead using "new TF2".
Thank you. I should have remembered such a simple thing.
Best wishes,
Roger
Received on Sun Jun 14 2009 - 14:19:18 CEST
This archive was generated by hypermail 2.2.0 : Mon Jun 15 2009 - 11:50:02 CEST