4 ms·
That's not an inline definition, that's a normal definition, which should never be in a header file. Non-inline definitions need to be in their own translation
by mgaunard 2y ago
That's not an inline definition, that's a normal definition, which should never be in a header file.
Non-inline definitions need to be in their own translation unit.
- gpderetta 2y agoOf course, but that disproves that an "inline definition is a definition that is provided inline with a declaration" [in an header file]. An inline definition is a definition that is marked inline, implicitly or explicitly. Whether it is defined together with the declaration or in an header vs translation unit is immaterial.