Splitting implementation and interface in C++
Splitting implementation and interface in C++
Posted Feb 24, 2025 13:29 UTC (Mon) by farnz (subscriber, #17727)In reply to: Improved dynamic linking ABIs by mathstuf
Parent article: Rewriting essential Linux packages in Rust
I suspect that, in practice, people splitting sources and implementations will be rare in open source C++ modules; you have no reason to hide the implementation from consumers of the interface, since it's all open source, but it is extra work to separate them cleanly. You see similar in Rust, where things like Windows use Rust behind an ABI barrier (and only export the interface), but open source Rust projects tend not to bother.
