Author |
Topic |
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Jun 15 2006 : 3:54:07 PM
|
Hi, when typing :: VAX expands it to :_GetBaseClass:
When typing :: after e.g. a class name it depends on the VAX's understanding of the class (I guess that the _GetBaseClass part may vary from project to project type).
so typeing something like:CTimeline_Occurrence::ERepeatType::eeInterval ends up being:CTimeline_Occurrence::ERepeatType:_GetBaseClass:eeInterval and sometimes even:CTimeline_Occurrence:_GetBaseClass:ERepeatType:_GetBaseClass:eeInterval
Using: VS6
Good Luck!
cu, Michael
PS: Apart from the "minor" bug this is some cool stuff!
|
Edited by - MrJones4u on Jun 15 2006 3:54:57 PM |
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Jun 15 2006 : 6:04:50 PM
|
Jupp....
sure does!
cu, Michael |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Jun 17 2006 : 12:30:02 PM
|
case=1331
from your description it looks like you are typing the implementation for a class member function. i have been using the refactoring beta long enough now that i never do this
for this specific case using "Create Implementation" should be a very nice work around. however there are still times when you will run into this bug, but hopefully it will be fixed soon. |
zen is the art of being at one with the two'ness |
|
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Jun 17 2006 : 1:42:24 PM
|
I'm actually trying to type an enum member identifier of an enum which is defined within a class - so without entering the :: I can't access the enum. Same for stuff in namespaces. Luckly I encounter these type of situation only ever so often. Guys using STL must go nuts...
CTimeline_Occurrence::ERepeatType::eeInterval as in:
class CTimeline_Occurrence
{
public:
enum ERepeatMode
{
.
eeInterval,
.
} m_eRepeatMode;
.
.
} |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Jun 17 2006 : 3:18:08 PM
|
*ah*, well it was a good theory while it lasted
so far this bug is only showing up in VC6, which is something. i have flagged this as urgent and needing to be fixed soon, for obvious reasons. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Jun 26 2006 : 12:44:13 AM
|
Fixed in build 1525. |
|
|
Staffan
Junior Member
Sweden
13 Posts |
Posted - Jun 26 2006 : 4:31:33 PM
|
However, it is not standard compliant C++ to qualify with the Enum name.
CTimeline_Occurrence::eeInterval is OK. CTimeline_Occurrence::ERepeatType::eeInterval is a violation.
see http://msdn2.microsoft.com/en-us/library/ms173704.aspx.
Regards
/Staffan |
|
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Jun 26 2006 : 4:38:13 PM
|
Yes, guess so... sad only that the VC6 does not know that ... Not doing it for fun.
cu, Michael |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Jun 27 2006 : 4:52:18 PM
|
*sigh* personally i like the non compliant form, it is a lot easier to see what you are doing when working with a library class that contains 15 enum types.
that compiled cleanly for me in VS2003, but VS2005 produces a warning, and my UNIX C++ compiler does not compile it at all. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|