This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112c. See for the official list.


1690. Associated namespace for local type

Section: 6.5.4  [basic.lookup.argdep]     Status: C++14     Submitter: Ville Voutilainen     Date: 2013-05-27

[Moved to DR at the February, 2014 meeting.]

We can return a lambda or an object of a local class type from a lambda in c++11, and we can return them from normal functions in c++14. If those lambdas and normal functions are in a namespace, the returned lambdas/local-classes apparently aren't in that namespace, or even if they are, ADL won't find them. Is this intended?

(See also issue 1664.)

Proposed resolution (September, 2013):

This issue is resolved by the resolution of issue 1691.