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
[namespace.udecl]/14"... member functions and member function templates in the derived class override and/or hide member functions and member function templates ..."
We recently ran into a bug where we had this code:
And I found wording of [namespace.udecl]/14 to be insufficient in distinguishing that we need to compare member functions and member function templates respectively. @GabrielDosReis had to help guide me to the correct interpretation.
Can this be addressed editorially?
The text was updated successfully, but these errors were encountered:
The purpose of this rule is to avoid "using Base::f" to produce a conflicting declaration, and we poorly mimic the rules from [over.load] for that. For example, if the function from the base class has no ref-qualifier, but the (otherwise identical) function in the derived class has a ref-qualifier, is that ok? After all, [over.load] says such two declarations cannot appear in the a single class definition.
I'm not sure there is an editorial answer to that question.
[namespace.udecl]/14
"... member functions and member function templates in the derived class override and/or hide member functions and member function templates ..."We recently ran into a bug where we had this code:
And I found wording of
[namespace.udecl]/14
to be insufficient in distinguishing that we need to compare member functions and member function templates respectively. @GabrielDosReis had to help guide me to the correct interpretation.Can this be addressed editorially?
The text was updated successfully, but these errors were encountered: