Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #83585

Re: ambiguous reference to 'find' in std and std::ranges namespaces

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Bo Persson <bo@bo-persson.se>
Newsgroups comp.lang.c++
Subject Re: ambiguous reference to 'find' in std and std::ranges namespaces
Date Thu, 14 Apr 2022 18:30:12 +0200
Lines 21
Message-ID <jbr0glFo4ogU1@mid.individual.net> (permalink)
References <t35vs1$8pu$1@dont-email.me> <t36c3i$dpq$1@dont-email.me> <t36j2i$10a3$1@gioia.aioe.org> <t36j5k$10a3$2@gioia.aioe.org> <t38aik$me1$1@dont-email.me> <t38gk5$lev$1@dont-email.me> <jbqehlFko73U1@mid.individual.net> <t397pk$v77$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net jxBoeHX/8jdwvHFRNkXdWQWWWNStMtDaCu/Gorpele2aQ4MtNc
Cancel-Lock sha1:oz1koB1nW7hmV6Mc+eC0XAkpTtc=
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0
Content-Language sv
In-Reply-To <t397pk$v77$1@dont-email.me>
Xref csiph.com comp.lang.c++:83585

Show key headers only | View raw


On 2022-04-14 at 15:32, Paavo Helde wrote:
> 14.04.2022 14:23 Bo Persson kirjutas:
> 
>>
>> The niebloids suppress ADL by not being functions. Only functions have 
>> overloads to be resolved.
> 
> Yes, the OP problems are because niebloids are not functions. The 
> question is whether this is an implementation artifact or is this 
> inevitable?
> 
> IOW, if niebloids were implemented as "functions without ADL" by a 
> compiler extension, would this be standard compliant and would this 
> solve OP problems?

Who knows what an extension would do?  :-)

However, the problem here isn't ADL but that std::find is found 
*without* using ADL. It is just visible anyway, due to the "using".

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ambiguous reference to 'find' in std and std::ranges namespaces Ralf Goertz <me@myprovider.invalid> - 2022-04-13 09:58 +0200
  Re: ambiguous reference to 'find' in std and std::ranges namespaces Paavo Helde <eesnimi@osa.pri.ee> - 2022-04-13 14:27 +0300
    Re: ambiguous reference to 'find' in std and std::ranges namespaces Bo Persson <bo@bo-persson.se> - 2022-04-13 14:21 +0200
      Re: ambiguous reference to 'find' in std and std::ranges namespaces Paavo Helde <eesnimi@osa.pri.ee> - 2022-04-13 15:31 +0300
    Re: ambiguous reference to 'find' in std and std::ranges namespaces Juha Nieminen <nospam@thanks.invalid> - 2022-04-13 13:26 +0000
      Re: ambiguous reference to 'find' in std and std::ranges namespaces Juha Nieminen <nospam@thanks.invalid> - 2022-04-13 13:28 +0000
        Re: ambiguous reference to 'find' in std and std::ranges namespaces Paavo Helde <eesnimi@osa.pri.ee> - 2022-04-13 17:26 +0300
        Re: ambiguous reference to 'find' in std and std::ranges namespaces Christian Gollwitzer <auriocus@gmx.de> - 2022-04-14 07:13 +0200
          Re: ambiguous reference to 'find' in std and std::ranges namespaces Ralf Goertz <me@myprovider.invalid> - 2022-04-14 08:57 +0200
            Re: ambiguous reference to 'find' in std and std::ranges namespaces Bo Persson <bo@bo-persson.se> - 2022-04-14 13:23 +0200
              Re: ambiguous reference to 'find' in std and std::ranges namespaces Paavo Helde <eesnimi@osa.pri.ee> - 2022-04-14 16:32 +0300
                Re: ambiguous reference to 'find' in std and std::ranges namespaces Bo Persson <bo@bo-persson.se> - 2022-04-14 18:30 +0200
              Re: ambiguous reference to 'find' in std and std::ranges namespaces Ralf Goertz <me@myprovider.invalid> - 2022-04-15 10:14 +0200
            Re: ambiguous reference to 'find' in std and std::ranges namespaces Manfred <noname@add.invalid> - 2022-04-14 15:02 +0200
  Re: ambiguous reference to 'find' in std and std::ranges namespaces Christian Hanné <the.hanne@gmail.com> - 2022-04-15 14:39 +0200

csiph-web