You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
bugfix
Posted - Jun 11 2006 : 12:02:59 PM
template<class C|, typename T>
class VaxTempl{};
-> "Add member" adds member at end of file.
template<typename C|, typename T>
class VaxTempl{};
-> "Add member" is missing in refactor context menu.
-bugfix
6 L A T E S T R E P L I E S (Newest First)
bugfix
Posted - Jun 14 2006 : 6:14:43 PM T of coz:)
ok.. I've thought "Add Member" would add a member to the template not to T.
feline
Posted - Jun 14 2006 : 6:12:43 PM i think what support are saying is this. given the code:
template<typename T> class VaxTempl{ ... };
T is not actually a class. it could be an int, or it could be CString, we do not know until the template is created. so you cannot add a member to the class T, since there is no class T.
which file should the new member be inserted into, when triggered on T?
bugfix
Posted - Jun 14 2006 : 6:05:30 PM Why shouldn't it make sense?
Except for some ints or floats(which aren't allowed anyways) its ok. IIRC ints can never be used as first template argument.
-bugfix
support
Posted - Jun 14 2006 : 5:16:17 PM Well kinda fixed. If you have a class named "C" or "T" you can use Add Member to add a member to that class and no longer adds the method to the end of the file.
Since in this instance C and T do not really refer to a class, they are place markers for whatever class you may pass in. So, Add Member does not make sense for these symbols. We will disable Add Member in this case in a future build.
support
Posted - Jun 13 2006 : 2:26:49 PM Will be fixed in build 1523.
rhummer
Posted - Jun 11 2006 : 12:21:45 PM good catch, case=1269