Skip to content

How to get member uvalue of Derived class, from Base* #88

Answered by BlackMATov
MineBill asked this question in Q&A
Discussion options

You must be logged in to vote

Added new meta_poly_ptr method to META_HPP_ENABLE_POLY_INFO macro.

It returns a pointer of the most derived type, which can be used as an instance for member access. See a little example with comments here: https://github.com/BlackMATov/meta.hpp/blob/main/develop/untests/meta_issues/github_discussion_88.cpp

I believe it should help! :-)

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MineBill
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants