3 ms·
When writing idiomatic C++, you typically end up with mostly stuff like impl->foo anyway. The pimpl pattern is sort of a weird artifact of how the compiler wor
by TillE 4y ago
When writing idiomatic C++, you typically end up with mostly stuff like impl->foo anyway.
The pimpl pattern is sort of a weird artifact of how the compiler works, but it generally works out as a smart way to structure your code.
- BenFrantzDale 4y agoIt really depends. I used PImpl today but it’s the rare exception. Between small inlinable classes and abstract base classes, there are lots of ways work. But that’s the beauty of C++: there are lots of ways to solve problems!