r/cpp • • 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

46 comments sorted by

View all comments

Show parent comment

3

u/fortsnek274 28d ago

How would stuff being merely reachable change ABI?

4

u/gracicot 28d ago

I meant modules won't help you with hiding entities completely, and also won't help you with ABI. Those are usually the two purpose for PIMPL, and they are orthogonal :)

3

u/fortsnek274 28d ago

When it comes to <Windows.h>, I just want to have HWND in my class without having to do the silly void* thing.