home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!debbie!johnh
- From: johnh@tt.com (John Hasselkus)
- Subject: Template member functions?
- Message-ID: <1992Dec21.161124.3196@debbie>
- Sender: news@debbie
- Nntp-Posting-Host: debbie
- Organization: Telecommunications Techniques Corporation, Germantown MD
- Date: Mon, 21 Dec 1992 16:11:24 GMT
- Lines: 18
-
- I though I recall this being discussed recently, but I didn't need to know
- until now. :)
-
- Is is possible to make a template member function of a class that is not a
- template class?
-
- For example:
-
- class FOO {
- public:
- void bar (A a); <- I would like (instead) to make bar be a template
- void bar (B b); function so that I don't have to recode the
- void bar (C c); algorithm used for "bar" 3 times.
- }
-
- --
- John Hasselkus
- johnh@tt.com
-