C++ Logo

std-proposals

Advanced search

Re: Ambiguous function overload resolution for multiple inheritance

From: Christof Meerwald <cmeerw_at_[hidden]>
Date: Mon, 23 Sep 2019 20:26:15 +0200
On Mon, Sep 23, 2019 at 07:16:43PM +0200, Peter Neiß via Std-Proposals wrote:
[...]
> I like to propose the following to make overload resolution more precise.
> The following code shows my problem: (testet with gcc, clang, msvc)
[...]
> ab.f(p); // is ambiguous

But it's name lookup that's ambiguous here, so you don't even get to
overload resolution, see http://eel.is/c++draft/class.member.lookup


Christof

-- 
http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

Received on 2019-09-23 13:28:45