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
 Strongly Typed Enums going unrecognized
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Clairvoire
New Member

2 Posts

Posted - Feb 28 2013 :  7:58:55 PM  Show Profile  Reply with Quote
Hello! I'm a student who just got VAX today to use, but I've run into a small problem.



The strongly typed enums from C++11, I can't seem to get VAX to recognize. I've tried restarting visual studio, but it remains rather baffled.

I'm using VS2010, and VAX's version is 10.7.1929.0, built the 22nd of February.

Is this a bug, or might I be making a mistake somewhere?
(Please ignore the "entity" mistake in the screencap, I fixed it after screencapping, but it doesn't change anything)

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 28 2013 :  10:03:28 PM  Show Profile  Reply with Quote
The underline/squiggles are from VS2010. It doesn't support C++11 strongly type enums like that. VS2012 does not display squiggles for the same code.

VA should display a list of the enum values when you type:
TYPE::
Go to Top of Page

Clairvoire
New Member

2 Posts

Posted - Feb 28 2013 :  11:47:32 PM  Show Profile  Reply with Quote
Oh, my mistake!
Thank you for the quick reply!
Go to Top of Page

DesertDragon
Junior Member

Russia
18 Posts

Posted - Apr 20 2013 :  06:31:06 AM  Show Profile  Reply with Quote
Anyway there is a bug in VA with unnamed typed enum.
enum { 
    width = 591, 
    height = 302 
};

is parsed by VA, and whese enumerators showing in Find references, Find symbol and Rename.
But if we add the type
enum: int { 
    width = 591, 
    height = 302 
};

VA to skip them and will not be processed.

Unnamed typed enums are useful in some cases, for example if we want to declare them instead of typed constants, since constants are not highlighted separately from normal variables, and enums are highlighted.

Edited by - DesertDragon on Apr 20 2013 06:48:30 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19039 Posts

Posted - Apr 22 2013 :  3:55:57 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=62046

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 09 2017 :  12:11:34 AM  Show Profile  Reply with Quote
case=62046 is fixed in build 2210.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000