home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news.service.uci.edu!network.ucsd.edu!sdcc12!sdcc3!acanter
- From: acanter@sdcc3.ucsd.edu (Adriaan Canter)
- Newsgroups: comp.lang.c++
- Subject: Templates
- Keywords: Template Inheritance
- Message-ID: <42406@sdcc12.ucsd.edu>
- Date: 11 Dec 92 16:59:32 GMT
- Sender: news@sdcc12.ucsd.edu
- Distribution: ca
- Lines: 27
- Nntp-Posting-Host: sdcc3.ucsd.edu
-
-
- I've read the FAQ, but I don't have a compiler supporting templates.
- Does the following code work, or does Vector have to be templated
- with a pre-defined Type before I can inherit from a class of Vector
- of Vector of Type?
-
- template<class Type>
- class Vector {
-
- .
- .
- .
- .
- .
- };
-
- template <class Type>
- class Matrix : public Vector < Vector <Type> > {
- .
- .
- .
- .
- .
- .
- };
-
-
-