[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation with clang
From: |
Werner LEMBERG |
Subject: |
Re: compilation with clang |
Date: |
Wed, 07 Nov 2018 22:12:21 +0100 (CET) |
>> The rule for determining when a base class function declaration
>> introduced by a using-declaration is hidden by a derived class
>> function declaration does not take the template parameter list
>> into account:
>> http://eel.is/c++draft/namespace.udecl#15.sentence-1
>
> Huh? This link states:
>
> When a using-declarator brings declarations from a base class
> into a derived class, member functions and member function
> templates in the derived class override and/or hide member
> functions and member function templates with the same name,
> parameter-type-list, cv-qualification, and ref-qualifier (if
> any) in a base class (rather than conflicting).
>
> The parameter-type-list is a different one in this example since
> they contain a different member function pointer type. Which is the
> reason we need the whole hooplahoop in the first place.
And another response:
Isn’t it template-parameter-list that is different rather than
parameter-type-list?
http://eel.is/c++draft/dcl.fct#def:parameter-type-list
http://eel.is/c++draft/temp#nt:template-parameter-list
[I must admit that I'm completely lost with those finicky C++
details.]
Werner
- Re: compilation with clang, (continued)
- Re: compilation with clang, Werner LEMBERG, 2018/11/06
- Re: compilation with clang, David Kastrup, 2018/11/06
- Re: compilation with clang, David Kastrup, 2018/11/06
- Re: compilation with clang, Werner LEMBERG, 2018/11/06
- Re: compilation with clang, Werner LEMBERG, 2018/11/07
- Re: compilation with clang, David Kastrup, 2018/11/07
- Re: compilation with clang,
Werner LEMBERG <=
- Re: compilation with clang, Werner LEMBERG, 2018/11/07