home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16606 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!munnari.oz.au!sol.deakin.OZ.AU!news.cs.uow.edu.au!cssc-syd.tansu.com.au!pete
  3. From: pete@cssc-syd.tansu.com.au (Peter Alexander Merel)
  4. Subject: Templates parameterized on templates (!)
  5. Message-ID: <1992Nov19.215956.20239@cssc-syd.tansu.com.au>
  6. Organization: AOTC - CSSC
  7. Date: Thu, 19 Nov 1992 21:59:56 GMT
  8. Lines: 27
  9.  
  10. I've been thinking of a template that is parameterized on a class, and
  11. on another template. You read that right - it's supposed to be parameterized
  12. on a template. What I want to do is employ any one of a number of different
  13. parameterized containers within my template ... I can't give a full
  14. example for reasons of company confidence, but imagine something like
  15.  
  16. template<template Container, class T>
  17. class troppo
  18. :
  19.     public Container<T>
  20. {
  21.     ...
  22. };
  23.  
  24. Now at the moment I'm using an adaptation of the COOL preprocessor courtesy
  25. of the AOTC OSE library (which tips a bucket over any other templated class
  26. library I've ever seen, but it isn't PD so I can't give you anything to
  27. do with it, and don't ask me; but believe me, you want it) in order to do 
  28. templates, and I'm not up on whether real live 3.0 compilers will do this 
  29. or not. If they don't I think they should. 
  30.  
  31. My ARM doesn't say a word about it. Comments?
  32.  
  33. -- 
  34. Internet: pete@cssc-syd.tansu.com.au   UUCP: {uunet,mcvax}!munnari!cssc-syd!pete
  35. Snail: 1/18-20 Orion Road, Lane Cove NSW 2066 Australia    Phone: +61 2 911 3130
  36. I am a big pond in a small fish.
  37.