home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!unido!sbsvax!joker!stefan
- From: stefan@mpi-sb.mpg.de (Stefan Naeher)
- Newsgroups: comp.lang.c++
- Subject: template argument as base class
- Message-ID: <20204@sbsvax.cs.uni-sb.de>
- Date: 23 Jul 92 13:49:51 GMT
- Sender: news@sbsvax.cs.uni-sb.de
- Reply-To: stefan@mpi-sb.mpg.de
- Organization: Max-Planck Institut fuer Informatik
- Lines: 18
-
-
- Does anyone know a workaround for the following problem.
-
- The current cfront version (3.01) does not support the use
- of formal type parameters as base classes for templates.
- Example:
-
- template <class T> class XYZ : public T { };
-
- cfront says
- "sorry, not implemented: formal type parameter T used as base class of template"
-
- A possible application is the implementation of data types with implementation
- parameters, e.g., dictionary<skiplist>, dictionary<red_black_tree>, ....
-
- Any suggestions are appreciated.
-
- Stefan N"aher.
-