3 ms·
You can use incomplete struct types in C++ as easily as in C. If you are hiding implementation, the struct will likely have a single data member struct priva
by angiosperm 3y ago
You can use incomplete struct types in C++ as easily as in C. If you are hiding implementation, the struct will likely have a single data member
struct private_impl_type;
std::unique_ptr<private_impl_type> impl;
If you choose this, you trade off optimization opportunities. Your choice.