Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++ODR and linkageSingle-choice MCQ

In C++17, why does this header-only code link cleanly across multiple translation units, and what changed from C++14?

// in a header included by many .cpp files struct Config { static inline int counter = 0; }; inline int global_id = 42;