🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Sep '95 draft standard: meaning of 14.5

#3132
From: Hugo van der Sanden
Date: Mon, 29 Jan 1996 15:53
24 lines
1412 bytes
In section 5 of chapter 14 of the September '95 draft standard, it
says this:
  The prefix template <class T> specifies that a template is being
  declared and that a type-name T will be used in the  declaration.

I'm unsure of the implications of the phrase 'will be used' in the
above - does it imply 'will be used 1 or more times' or 'will be used
0 or more times'? In other words, is it an error to declare a template
as:
  template<class T> class useless {
    int i;
  public:
    int get() { return i; }
    void set(int j) { i=j; }
  };
such that 'T' is not used within the definition?

Any clarification would be appreciated,

Hugo van der Sanden
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4eip8h$44s@zinc.compulink.co.uk>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: hv@compulink.co.uk (Hugo van der Sanden)
Message-ID: <4eip8h$44s@zinc.compulink.co.uk>
X-Original-Date: 29 Jan 1996 15:31:29 GMT
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 29 Jan 96 15:53:00 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: Sep '95 draft standard: meaning of 14.5
Organization: CIX
X-Newsreader: TIN [version 1.2 PL2h6]
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMQzteuEDnX0m9pzZAQEOFwF/eeO93ReZFRgc7zBDjhV6Cd8nO6jexxBl
 shGJWx5HoeI8cHPpNFLK8UY6S7pGlrwH
 =Dm0Q