Menu

#9 Template arguments not listed as type

open
Interface (8)
5
2002-11-01
2002-11-01
No

Version: PR448 Alpha 1.3

Create a template class such as:

template<class T>
class Array {
...
T *m_elements;
...
};

When you add members of member functions T will not
be listed as a valid type. You should add T as a global
type under Other Types as a workaround. When you
use more than one template arguments such as
A,B,T,R,... you must add all of them to Other Types.

It could be better to automagically list the template
types as a valid selection in template classes only.

- Complex -

Discussion

  • Craig Gunhouse

    Craig Gunhouse - 2002-11-01
    • assigned_to: nobody --> gunner
     
  • Craig Gunhouse

    Craig Gunhouse - 2002-11-01

    Logged In: YES
    user_id=109050

    It has always been this way, I guess it is time to change it.

    Gunner

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.