Splitting implementation and interface in C++
Splitting implementation and interface in C++
Posted Feb 25, 2025 11:57 UTC (Tue) by mathstuf (subscriber, #69389)In reply to: Splitting implementation and interface in C++ by farnz
Parent article: Rewriting essential Linux packages in Rust
FWIW, CMake does this by enforcing that `PRIVATE TYPE CXX_MODULES` files are never imported from `PUBLIC TYPE CXX_MODULES` sources, so at least it can help enforce the "don't expose private bits in public interface units" part.
