r/cpp • u/victor-s8n • 29d 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 • 29d ago
This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
View all comments
Show parent comment
2
u/decapod2005 28d ago
This just looks like a stack object with extra steps? You still need the explicit dependency to the type that you want since you have to supply it as a template parameter. So as far as I can see it doesn't achieve anything that the pimpl idiom does.