4 ms·
If your internal representation is stable, you can put private functions in a private friend class that is only defined in the cpp file: `private struct access;
by BenFrantzDale 3y ago
If your internal representation is stable, you can put private functions in a private friend class that is only defined in the cpp file: `private struct access; friend struct access;`.
- wizofaus 3y agoInteresting idea, can't say I've used that pattern used, and obviously the code will end up slightly more verbose (no automatic "this" argument) but in principle could be better than the pimpl technique.