Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 bad coloring when enum is defined in typedef
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jmihalicza
Ketchup Master

Hungary
66 Posts

Posted - Jul 12 2005 :  09:55:19 AM  Show Profile
Try this:
typedef enum { A, B } C;
C gets the same color as A and B.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 12 2005 :  4:58:42 PM  Show Profile
are you using C? in C++ an enum is a type, so there is no need to typedef it. or at least no need that i can think of off hand.

zen is the art of being at one with the two'ness
Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Jul 13 2005 :  04:55:53 AM  Show Profile
However, it's still legal syntax and should be coloured correctly.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

jmihalicza
Ketchup Master

Hungary
66 Posts

Posted - Jul 13 2005 :  05:43:30 AM  Show Profile
Feline, you are right that it is not needed, actually I got a hardly talkative error message and thought first that the compiler doesn't treat it as a typename when referring to it from outside in a template as 'typename MyTemplateParameter::MyEnumType'. Of course the problem was elsewhere, but I just noticed this thing with the coloring.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 13 2005 :  4:59:11 PM  Show Profile
Stephen i do agree, but in an effort to keep the number of new bugs down i like to see if i can make some problems "go away" it doesn't always work, but i consider it worth a try now and then.

case=696

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000