You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have the "field_name" attribute for properties, which allows get/set methods use the public field of the impl class. But we don’t have a way to generate public fields for cases where it’s necessary to wrap the public interface wrap and impl classes to match.
It can be implement by a template class that:
Arguments of the emplate - wrap class and field type.
The constructor accepts a pointer to the wrap class pointer, and pointers on the Get and Set wrap class methods.
Has overrided assignment and conversion operators for field type, thats will use Get and Set methods pointers.
We already have the "field_name" attribute for properties, which allows get/set methods use the public field of the impl class. But we don’t have a way to generate public fields for cases where it’s necessary to wrap the public interface wrap and impl classes to match.
It can be implement by a template class that:
Example how it works:
https://ideone.com/SsmKlg
The text was updated successfully, but these errors were encountered: