Re: [ROOT] C++ Question

From: Brett Viren (bv@bnl.gov)
Date: Fri Mar 16 2001 - 15:05:24 MET


An additional suggestion:

Instead of using pointer to member function, consider using a
functional object / functor (ie, a class with operator()).  Using this
idiom allows you to be more flexable in what is passed.  You can use
C++'s mem_fun() to pass a member function or ptr_fun() to pass a
pointer to a regular function or you can just pass a hand written
functor.  

-Brett.



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