How can I remove/refactor a «friend» dependency declaration properly?
Let’s setup some constraints for refactoring first: The ClassAAccessor’s publicly visible interface should change in no way The ClassA internal operations should not be visible/accessible from the public The overall performance and footprint of the original design should not be hurt Step 1: Introduce an abstract interface For a first shot, I factored out the … Read more