Is there a way to create a list (e.g. an array) of pointers to each method of a C++ class?
Something like Type.GetMethods() in the .NET framework, but using only standard C++.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No this is not possible in a general way. C++ does not have the same metadata infrastructure that .Net posses.
Could you provide us with a scenario where you want to use this information? There may be a better approach you can use with C++