r/cpp • u/victor-s8n • 27d ago
How I design C++ classes
https://rafb.eu/blog/cpp-class-design/This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
69
Upvotes
r/cpp • u/victor-s8n • 27d ago
This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
View all comments
Show parent comment
1
u/victor-s8n 23d ago
You would still expose internal dependencies and logic to the public interface. Which then gets pulled in into all other files including the header.
Yes, your are correct, but the bigger compile-time and leaking of internal information still occurs.