🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1283

Re: Template names

#1283
From: Pete Becker
Date: Thu, 17 Dec 1992 17:25
24 lines
1109 bytes
In article <TEUBEN.92Dec16162305@lynx.astro.umd.edu> teuben@lynx.astro.umd.edu (Peter Teuben) writes:
>
>If one defines a template as e.g.
>
>  template <class T> class star {
>	...
>  };
>
>and also define a real class with that same 'template' name, i.e.
>
>  class star {
>        ...
>  };
>
>the Borland C++ compiler (3.0) complains. Can anybody confirm if this 
>is a Borland bug?

	I hope not, since it isn't a bug.  ARM, section 14.2:

	A class template name must be unique in a program and may not
	be declared to refer to any other template, class, function,
	object, value, or type in the same scope.

	-- Pete
Technical Details
Message-ID: <1992Dec17.172510.27088@borland.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!umn.edu!csus.edu!borland.com!pete
References: <TEUBEN.92Dec16162305@lynx.astro.umd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!hri.com!spool.mu.edu!umn.edu!csus.edu!borland.com!pete
From: pete@borland.com (Pete Becker)
Newsgroups: comp.std.c++
Subject: Re: Template names
Message-ID: <1992Dec17.172510.27088@borland.com>
Date: 17 Dec 92 17:25:10 GMT
References: <TEUBEN.92Dec16162305@lynx.astro.umd.edu>
Sender: news@borland.com (News Admin)
Distribution: comp
Organization: Borland International
Lines: 24
Originator: pete@genghis.borland.com