Re: OON: KAI and templates

From: Arch Robison (robison@kai.com)
Date: Tue Nov 23 1999 - 12:52:12 EST


> On the KAI homepage it is said that "template template parameters" are
> not yet implemented. Does that mean something like
> "vector<vector<double> >" will not work?
 
No. vector<double> is an instance of a template, not a template,
hence "vector<vector<double> >" works just fine with KAI C++.

What the homepage means is that the following does not work yet:

        template<template T,class X> struct Foo {
            T<X> container;
        };

        Foo<vector,int> bar;

The key point is that template parameter T is a template, not a class or value.

Arch D. Robison Kuck & Associates Inc.
robison@kai.com 1906 Fox Drive
217-356-2288 ext. 56 Champaign IL 61820
--------------------- Object Oriented Numerics List --------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/oon/
* If this doesn't work, please send a note to owner-oon-list@oonumerics.org



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:10 EST