Is it possible to write something like
template<class T1, class T2>
class CMyClass {
typedef T1<T2> mynewtype; // key line using too of the template
parameters to create a third type
mynewtype x;
}
typedef CMyClass<vector, int> mynewclass;
I have tried but it does not recognise T1 as a templated class even though
the one I am instantiating it with is. The real thing is too big to paste
but the example shows the key line i want to do. I am assuming I need to
say that T1 should be a template but cannot find how to do it, something
like
template<template class T1, class T2>
Thanks in advance for any responses,
Tom
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/