Header discipline: include guards, forward declarations to cut coupling, inline functions in headers, extern templates to curb duplicate instantiation. ODR violations are the silent killer.
Modules replace textual inclusion: real encapsulation (non-exported names stay private), no macro leakage, order-independent imports — the biggest compilation-model change since C.
exportmodule geometry;
exportstructPoint { double x, y; };
doublenorm(Point); // not exported: invisible to importers
import std; — the entire standard library as one module (P2465), dramatically cheaper than any include set and usable even in otherwise header-based builds.
Adoption era: build systems (CMake's import std, module scanning) catch up, and #embed moves binary assets out of hand-converted headers. Guidance: new code modularizes top-down, headers remain the interop surface.