home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!doc.ic.ac.uk!uknet!glasgow!unix.brighton.ac.uk!je
- From: je@unix.brighton.ac.uk (John English)
- Newsgroups: comp.lang.c++
- Subject: Re: overloading templates
- Message-ID: <1993Jan22.144155.5663@unix.brighton.ac.uk>
- Date: 22 Jan 93 14:41:55 GMT
- References: <1993Jan22.010238.9059@cs.kuleuven.ac.be>
- Organization: University of Brighton, UK
- Lines: 38
-
- pluym@cs.kuleuven.ac.be (Luc Pluym) writes:
- : FIRST QUESTION
- : ==============
- : Can I have
- :
- : template <class T1>
- : class A {...};
- :
- : and
- :
- : template <class T1,class T2>
- : class A {...};
- :
- : at the same time?
-
- No. Templates can't be overloaded.
-
- : SECOND QUESTION
- : ===============
- : Suppose I have
- :
- : template <class T,int i>
- : class B {...};
- :
- : and also
- :
- : template<class T,double d>
- : class B {...};
-
- No. Templates can't be overloaded.
- --
- -------------------------------------------------------------------------------
- John English | Fudd's first law of opposition:
- Dept. of Computing | If you push something hard enough, it
- University of Brighton | *will* fall over.
- E-mail: je@unix.brighton.ac.uk | Testlicle's deviant to Fudd's law:
- Fax: 0273 642405 | What goes in, must come out.
- -------------------------------------------------------------------------------
-