|
-
April 2nd, 2003, 03:04 AM
#1
more templates at once?
I'm really unexperienced, so maybe it's nonsense. But I would like to know whether is there a possibility to use many different templates in one method or operator like:
template < class T, int x, int y> class CMatrix
{
// blah blah blah...
}
template < class T, int x, int z>
template < class T, int y, int z>
CMatrix < T, x, z> CMatrix< T, x, y> :: operator * ( CMatrix < T, y, z> m)
{
CMatrix < T, x, z> r;
// blah blah blah
return r;
}
I know, syntax is not correct, template keyword shouldn't be used like above, but if You know how to handle this problem I appreciate any advice.
Last edited by carnaz; April 2nd, 2003 at 03:15 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|