Deal with external libraries protected class fields
I’m currently stumbled upon an issue; i have an external library written in C++ using templates a lot, a “black box” for me whose i can see the code and not implement over.
I’m using instances of classes defined in that library, and i want to modify some protected fields, for my uses of the interface, of these instances and clearly there aren’t setter and getter provided.
Which is the best way to face this problem?