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