Title
template-ids in using-declarations
Status
nad
Section
9.9 [namespace.udecl]
Submitter
Valentin Bonnard

Created on 1999-09-16.00:00:00 last changed 301 months ago

Messages

Date: 1999-10-15.00:00:00

Rationale (10/99): 9.9 [namespace.udecl] paragraph 1 says, "A using-declaration introduces a name..." It is the name that is thus introduced that cannot be a template-id.

Date: 2022-02-18.07:47:23

9.9 [namespace.udecl]s ays,

A using-declaration shall not name a template-id.
It is not clear whether this prohibition applies to the entity for which the using-declaration is a synonym or to any name that appears in the using-declaration. For example, is the following code well-formed?
    template <typename T>
    struct base {
	void bar ();
    };

    struct der : base<int>
    {
	using base<int>::bar; // ill-formed ?
    };

Rationale (10/99): 9.9 [namespace.udecl] paragraph 1 says, "A using-declaration introduces a name..." It is the name that is thus introduced that cannot be a template-id.

History
Date User Action Args
2000-02-23 00:00:00adminsetmessages: + msg284
1999-09-16 00:00:00admincreate