Title
Argument-dependent lookup in the range-based for
Status
cd3
Section
8.6.5 [stmt.ranged]
Submitter
Mike Miller

Created on 2012-01-16.00:00:00 last changed 90 months ago

Messages

Date: 2013-04-15.00:00:00

[Moved to DR at the April, 2013 meeting.]

Date: 2012-10-15.00:00:00

Proposed resolution (October, 2012):

Change 8.6.5 [stmt.ranged] paragraph 1 bullet 3 as follows:

  • otherwise, begin-expr and end-expr are begin(__range) and end(__range), respectively, where begin and end are looked up with argument-dependent lookup in the associated namespaces (6.5.4 [basic.lookup.argdep]). For the purposes of this name lookup, namespace std is an associated namespace. [Note: Ordinary unqualified lookup (6.5.3 [basic.lookup.unqual]) is not performed. —end note]

Date: 2012-01-16.00:00:00

It is not clear whether the reference to argument-dependent lookup in 8.6.5 [stmt.ranged] paragraph 1 bullet 3 should be “pure” argument-dependent lookup (with no unqualified name lookup component) or the usual lookup that is invoked when argument-dependent lookup is done, i.e., unqualified lookup, potentially augmented by the associated namespaces.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-10-14 00:00:00adminsetstatus: dr -> drwp
2013-05-03 00:00:00adminsetmessages: + msg4396
2013-05-03 00:00:00adminsetstatus: ready -> dr
2012-11-03 00:00:00adminsetstatus: review -> ready
2012-02-27 00:00:00adminsetmessages: + msg3755
2012-02-27 00:00:00adminsetstatus: open -> review
2012-01-16 00:00:00admincreate