home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11407 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  899 b 

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unido!sbsvax!joker!stefan
  2. From: stefan@mpi-sb.mpg.de (Stefan Naeher)
  3. Newsgroups: comp.lang.c++
  4. Subject: template argument as base class
  5. Message-ID: <20204@sbsvax.cs.uni-sb.de>
  6. Date: 23 Jul 92 13:49:51 GMT
  7. Sender: news@sbsvax.cs.uni-sb.de
  8. Reply-To: stefan@mpi-sb.mpg.de
  9. Organization: Max-Planck Institut fuer Informatik
  10. Lines: 18
  11.  
  12.  
  13. Does anyone know a workaround for the following problem.
  14.  
  15. The current cfront version (3.01) does not support the use
  16. of formal type parameters as base classes for templates.
  17. Example: 
  18.  
  19. template <class T> class XYZ : public T { };
  20.  
  21. cfront says
  22. "sorry, not implemented: formal type parameter T used as base class of template"
  23.  
  24. A possible application is the implementation of data types with implementation 
  25. parameters, e.g., dictionary<skiplist>, dictionary<red_black_tree>, ....
  26.  
  27. Any suggestions are appreciated.
  28.  
  29. Stefan N"aher.
  30.