home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13451 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  969 b 

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!gatech!swrinde!sdd.hp.com!scd.hp.com!hplextra!hpcc05!hpcuhb!hpcuhe!brians
  2. From: brians@hpcuhe.cup.hp.com (Brian Sullivan)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How do I write a typedef to go with my template class?
  5. Message-ID: <33820006@hpcuhe.cup.hp.com>
  6. Date: 9 Sep 92 03:33:13 GMT
  7. References: <ghawkins.714856261@unix1.tcd.ie>
  8. Organization: Hewlett Packard, Cupertino
  9. Lines: 8
  10.  
  11. I have also had problems with typedef's inside of a template class.
  12. I have been using the lastest cfront based compiler cfront 3.1
  13. which supports template classes, but it won't allow any typedef's
  14. involving a generic type (the type passed to the template, X in your
  15. example).  I get a not implemented message.  I then have to give
  16. a non-typedef declaration every time that I want to pass a function type
  17. to a template class.  It is very ugly, and I hope that USL implements
  18. this feature before C++ 4.0.
  19.