home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1811 < prev    next >
Encoding:
Text File  |  1992-12-16  |  926 b   |  34 lines

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!saimiri.primate.wisc.edu!ames!haven.umd.edu!umd5!umd5.umd.edu!teuben
  2. From: teuben@lynx.astro.umd.edu (Peter Teuben)
  3. Newsgroups: comp.std.c++
  4. Subject: Template names
  5. Message-ID: <TEUBEN.92Dec16162305@lynx.astro.umd.edu>
  6. Date: 16 Dec 92 21:23:05 GMT
  7. Sender: news@umd5.umd.edu
  8. Distribution: comp
  9. Organization: University of Maryland, Astronomy Department
  10. Lines: 22
  11.  
  12.  
  13. If one defines a template as e.g.
  14.  
  15.   template <class T> class star {
  16.     ...
  17.   };
  18.  
  19. and also define a real class with that same 'template' name, i.e.
  20.  
  21.   class star {
  22.         ...
  23.   };
  24.  
  25. the Borland C++ compiler (3.0) complains. Can anybody confirm if this 
  26. is a Borland bug?
  27.  
  28.     Peter
  29. --
  30. Peter J. Teuben         |  INTERNET  : teuben@astro.umd.edu
  31. Astronomy Department    |  FAX:        (301) 314-9067
  32. University of Maryland  |  MA-BELL   : (301) 405-1540 (office)
  33. College Park, MD 20742  |              (301) 405-1502 (secr.)
  34.