You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a non-module world, f is implicitly inline, and writing the keyword is redundant.
But C++20 adopted P1779, which changes the semantics of this code: when s is not attached to the global module, f is not inline; if you want it to be, you have to say so explicitly. This does not apply to defaulted member functions however:
structs {
inlines() = default; // Still redundant.
};
(We may even want to add a check like modernize-modules that addsinline to ease the transition to modules.)