Splitting implementation and interface in C++
Splitting implementation and interface in C++
Posted Feb 25, 2025 3:50 UTC (Tue) by Cyberax (✭ supporter ✭, #52523)In reply to: Splitting implementation and interface in C++ by ras
Parent article: Rewriting essential Linux packages in Rust
One big problem with this approach is versioning. It's less of a problem for internal libraries in monolithic projects like systemd or uutils, but it will become a problem if the package is exposed via system-level package managers. And if you're in a monolithic project, then there's no need to embed the pre-instantiated type information into .so files, you can just store it in an ".h" file.
