Not sure how much pimpl is used in reality, but it's a pretty ok solution to speed up build times (apart from unity builds), because it avoids having to include headers that are only needed for the private state into the public interface header.
With many of the features coming into the language over time, I kinda wish that a bit more restricted subset of it eventually becomes a thing, but I know in practice it might as well be a completely different language. That, and I expect that still many other things have not been resolved as well as they are elsewhere, such as build system and dependency management (although I haven't touched this stack for a while now, so I would love to be surprised).
I also like to use it sometimes to "hide" private methods and their documentation into PIMPL, so the public header is kept clean.
shevy-java•39m ago
feelamee•22m ago
konstmonst•13m ago
seanhunter•11m ago
dvratil•4m ago