Article View: comp.std.c++
Article #4060Re: Template Syntax
From: Jan Bielawski
Date: Tue, 16 Apr 1996 20:13
Date: Tue, 16 Apr 1996 20:13
31 lines
2105 bytes
2105 bytes
In article <199604102351.QAA11178@netcom15.netcom.com> Scott Meyers <smeyers@netcom.com> writes:
<I was under the impression that the use of a template name inside the
<definition of a class template was implicitly considered to be qualified
<by the template parameter(s). For example, I thought that in
<
< template <class T>
< class Array {
< public:
< Array operator=(const Array& rhs);
< ...
< };
<
<the declaration of operator= was legal, because the use of the token
<"Array" as a return type and a paramter was implicitly treated as if it
<were "Array<T>." Many compilers accept this, but I'm told that several
<reject it, and I can't find language in the January DWP that allows it.
Doesn't section 14.2.1 ("Locally declared names") explicitly allow it?
--
Jan Bielawski
Molecular Simulations, Inc. )\._.,--....,'``. | http://www.msi.com
San Diego, CA /, _.. \ _\ ;`._ ,. | ph.: (619) 458-9990
jpb@msi.com fL `._.-(,_..'--(,_..'`-.;.' | fax: (619) 458-0136
--
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Technical Details
Message-ID:
<1996Apr15.235607.11220@biosym.com>Path:
arc1-ca.pugleaf.net!fido.asd.sgi.com!austernReferences:
<199604102351.QAA11178@netcom15.netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern From: jpb@iris8.msi.com (Jan Bielawski) Newsgroups: comp.std.c++ Subject: Re: Template Syntax Date: 16 Apr 1996 13:13:36 PDT Organization: Biosym Technologies, Inc. Approved: austern@isolde.mti.sgi.com Message-ID: <1996Apr15.235607.11220@biosym.com> References: <199604102351.QAA11178@netcom15.netcom.com> NNTP-Posting-Host: isolde.mti.sgi.com X-Original-Date: Mon, 15 Apr 1996 23:56:07 GMT Apparently-To: comp-std-c++@uunet.uu.net X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMXP/cUy4NqrwXLNJAQEnFQIAsqhso2flX4+WvFxf0AtJZd0qs/uSGMI6 U0Kr/+e2Yef+ThL0WQ9+S2wy3LgqqxZihiiOInYq+hlIZSrOIMJ8NQ== =cUd7 Originator: austern@isolde.mti.sgi.com