In reply to Ashith:
Hi Ashith
I split your comment into 2 parts.
-
But, the handle is of the type A. This would restrict the access to constraints in class A alone and not B.
thanks for your clarification. I misunderstand the definition of member in object. Generally, if we use A_h = B_h, then A_h could access virtual function in B_h. Thus I think we could also access member c_B in B_h. I made a mistake here. -
then you can change the handle to B type itself
I’m not sure the smart way to implement this. Because as a base_test, we need to have base configuration A as the object type. So, what do you mean to change the handle to B type itself ? I only now to cast A_h to B_h.