3 ms·
Perhaps the macros help you forward methods on the outer class to methods on the impl class? While your approach of having public methods refer to the field al
by comex 3y ago
Perhaps the macros help you forward methods on the outer class to methods on the impl class? While your approach of having public methods refer to the field also works, it’s nice to have public and private methods in the same place (the impl class’s definition) and using the same syntax (neither having to go through the impl field).
- maleldil 3y ago> it’s nice to have public and private methods in the same place (the impl class’s definition) In my experience, the impl class is usually defined in the main class's cpp file.