CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Apr 2003
    Location
    Heilbronn
    Posts
    48

    Unhappy 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
  •  





Click Here to Expand Forum to Full Width

Featured