Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-12-20


1015. Template arguments and argument-dependent lookup

Section:6.5.4  [basic.lookup.argdep]    Status:C++11    Submitter:Jason Merrill    Date:2009-12-24

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Currently, according to 6.5.4 [basic.lookup.argdep] paragraph 2,explicit template arguments in a function argument do not contributeto the associated namespaces in a function call, although they plausiblyshould in an example like the following:

    namespace N {        struct S { };        void f(void (*)(S));    };    template<typename T> void g(T);    void h() {        f(g<N::S>);    // Should findN::f    }

See alsoissue 997.

Proposed resolution (November, 2010) [SUPERSEDED]:

This issue is resolved by the resolution ofissue 997.




[8]ページ先頭

©2009-2026 Movatter.jp