Dave's Brain

Browse - programming tips - call a pointer to a member function

Date: 2011jul7
Language: C++

Q.  How do I call a pointer to a member function?

A.  Use this handy macro:

	#define callMemberFunction(object,ptrToMember)  ((object).*(ptrToMember))


What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: