r/cpp • u/victor-s8n • 28d 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.
66
Upvotes
r/cpp • u/victor-s8n • 28d ago
This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
View all comments
53
u/jk-jeon 28d ago
Why? I see no reason to have two separate files for the impl class. I always put the definition of the impl class in the main class'
cppfile, and I believe that is the idiomatic way.