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
Of a Cpp2 function, its Cpp1 declaration.
Of a Cpp2 non-expression alias, its Cpp1 declaration.
Of a Cpp2 expression alias, its Cpp1 definition.
according to this order it should work, maybe namespaces change the order, I didn't notice them mentioned in the list anywhere, because i'm aliasing the cpp2 function which should be forward declared before
Yeah, it doesn't mention namespaces.
I suppose they're implicit, since they're required anyways.
The comment is from months before using declarations (commit dd04703).
quick example for reproducing:
results in:
being declared before
[[nodiscard]] auto xf() -> int;
which makes the code not compile due to cpp1 requiring ordering.
The text was updated successfully, but these errors were encountered: