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

Thread: template

  1. #1
    Join Date
    Oct 2001
    Posts
    745

    template

    How can I forward declare a template class.

    ie:for a normal class,if it is

    class A;

    How is it for a template class

    Thanks in advance

  2. #2
    Join Date
    Jul 2001
    Posts
    23
    Hello Kohinoor24,

    for a template class declaration:

    Code:
    template <class T> class B;
    if your class B is a template class, ie:
    Code:
    template <class T>
    class B {
    ...
    };
    Have a good day,
    Alain

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