3 ms·
Definition of inline members definitely does not have to appear with declaration (and usually does not for legibility reasons). struct X { inline void f();
by 112233 2y ago
Definition of inline members definitely does not have to appear with declaration (and usually does not for legibility reasons).
struct X { inline void f(); };
is a perfectly valid inline.
- mgaunard 2y agothat's a forward declaration, you'll need to provide the inline definition in the same translation unit.