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


Groups > comp.std.c++ > #765

Shouldn't there be a way to exclude member functions out of name lookup explicitly?

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Thu, 30 Jul 2015 12:00:02 -0500
Return-Path <cppmods@glengoyne.dreamhost.com>
Sender std-cpp-request@vandevoorde.com
Approved austern@google.com
Message-ID <5e134e90-067e-4d71-bf40-c4396bfc52f4@googlegroups.com> (permalink)
Newsgroups comp.std.c++
From Anton Bikineev <ant.bikineev@googlemail.com>
Subject Shouldn't there be a way to exclude member functions out of name lookup explicitly?
Organization unknown
References <820594f6-b670-4dba-8254-26d352489616@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
X-Original-Date Tue, 28 Jul 2015 00:27:31 -0700 (PDT)
X-Submission-Address std-cpp-submit@vandevoorde.com
Date Thu, 30 Jul 2015 11:54:20 CST
Lines 20
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-4jMbNBPU3V4qGRvrtjsCD5fmewi6jr70WXrDvcqF7POXJFXaPXKV/rImGxlsfw082a7RBdixERz5XQX!crl1iDsjA6cshDFz51a7lkhuwScm/Xc2GQpTMWaUAv/0gFLGJPx7s535VQPjyx5V5KjofRzxsAGH!Z+YUu3e38Uo=
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1856
Xref csiph.com comp.std.c++:765

Show key headers only | View raw


You can just declare a free function outside of class like

inline Iterator begin_force_adl(Iterator& it)
{
    auto p = begin(it);
}

And call it explicitly qualifying from your member function.

Not sure if it's what you were asking for.



--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

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


Thread

Shouldn't there be a way to exclude member functions out of name  lookup explicitly? Johannes Gerd Becker <johannes.gerd.becker@googlemail.com> - 2015-07-27 11:22 -0600
  Shouldn't there be a way to exclude member functions out of name   lookup explicitly? Anton Bikineev <ant.bikineev@googlemail.com> - 2015-07-30 11:54 -0600
    Re: Shouldn't there be a way to exclude member functions out of name    lookup explicitly? Johannes Gerd Becker <johannes.gerd.becker@googlemail.com> - 2015-08-01 21:09 -0600
      Re: Shouldn't there be a way to exclude member functions out of name lookup explicitly? Jakob Bohm <jb-usenet@wisemo.com> - 2015-08-12 13:00 -0600
        Re: Shouldn't there be a way to exclude member functions out of name  lookup explicitly? Johannes Gerd Becker <johannes.gerd.becker@googlemail.com> - 2015-08-16 17:29 -0600
          Re: Shouldn't there be a way to exclude member functions out of name lookup explicitly? Jakob Bohm <jb-usenet@wisemo.com> - 2015-08-18 22:35 -0600
  Re: Shouldn't there be a way to exclude member functions out of name  lookup explicitly? Richard Smith <richard@ex-parrot.com> - 2015-08-20 01:10 -0600
    Re: Shouldn't there be a way to exclude member functions out of name   lookup explicitly? Johannes Gerd Becker <johannes.gerd.becker@googlemail.com> - 2015-08-21 19:14 -0600

csiph-web