R
Richard Cromer
Greetings,
I am trying to create a template class called Matrix that operates on a
template class called complex.
Now of course complex is a template class and I want it to be the argument
for Matrix.
So I have something like:
template <class T> class complex {/*..*/}
then I want to use complex in Matrix like this:
template <class T2> class Matrix {/*..*/} where T2 is of type
complex<double>.
Has anyone ever done anything like that? I am using Solaris 2.6 OS with CC
ver 6.2.
Any help will be appreciated.
Thanks.
I am trying to create a template class called Matrix that operates on a
template class called complex.
Now of course complex is a template class and I want it to be the argument
for Matrix.
So I have something like:
template <class T> class complex {/*..*/}
then I want to use complex in Matrix like this:
template <class T2> class Matrix {/*..*/} where T2 is of type
complex<double>.
Has anyone ever done anything like that? I am using Solaris 2.6 OS with CC
ver 6.2.
Any help will be appreciated.
Thanks.