C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Ambiguous function overload resolution for multiple inheritance
From: Christof Meerwald (cmeerw_at_[hidden])
Date: 2019-09-23 13:26:15


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

STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups