Initializing an array of pointers to member functions insideconstructor & invoking them

I am trying to create an array of pointers to member functions inside
my class. When I created a global array of type pfn & initialized with
member functions and copy it back to the member function pointer array
(Handlers) - compiler doesnt let me do that.
I got an error as below:

"invalid use of non-static member function bool test::func1(long int)"

I am looking for two things at this point

1) how to initialize the member array of pointers (I prefer to do that
in the constructor)

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!