Movatterモバイル変換


[0]ホーム

URL:


Issue 241 - WG21 CWG Issues
Title
Error in example in 14.8.1
Status
tc1
Section
13.10.2 [temp.arg.explicit]
Submitter
Mike Miller

Created on2000-08-09.00:00:00 last changed277 months ago

Messages

msg454 (view)
Date: 2000-10-15.00:00:00

Proposed resolution (10/00):

In the example in 13.10.2 [temp.arg.explicit] paragraph 6,change the third line from

        template <int X> void f();

to

        template <int X> void f(B);
msg394 (view)
Date: 2003-04-25.00:00:00

13.10.2 [temp.arg.explicit] paragraph 6 contains the followingexample:

    namespace A {        struct B { };        template<int X> void f();    }    namespace C {        template<class T> void f(T t);    }    void g(A::B b) {        f<3>(b);    // ill-formed: not a function call        A::f<3>(b); // well-formed        C::f<3>(b); // ill-formed; argument dependent lookup                    // only applies to unqualified names        using C::f;        f<3>(b);    // well-formed because C::f is visible; then                    // A::f is found by argument dependent lookup    }

A::f() should have a parameter of typeA::B.

History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetmessages: +msg454
2000-11-18 00:00:00adminsetstatus: open -> dr
2000-08-09 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp