Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 enum class scope not enforced in completion

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
sitnduck Posted - May 08 2023 : 10:17:20 AM
In C++ using an enum class:
enum class eNetUIMode
{
NORMAL,
};

When doing an assignment, it doesn't add the class name. e.g. suggestions for completion after the "=" are without the class name:
eNetUIMode ClNetUI::mp_eNetworkMode = NORMAL;

Should be:
eNetUIMode ClNetUI::mp_eNetworkMode = eNetUIMode::NORMAL;

2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 08 2023 : 12:54:14 PM
What do you mean by static value definition? Using the following very simple test case, VS2022 and VA 2488.0, when I type the == and a space, to get the VA smart suggestion listbox in both if statements the class name is always part of the suggestion:

enum class SimpleEnumClassSuggest
{
	NORMAL,
	SUPER_NORMAL
};

void suggestionEnumClassItem()
{
	SimpleEnumClassSuggest localEnum;
	if(localEnum == SimpleEnumClassSuggest::SUPER_NORMAL) { }
	static SimpleEnumClassSuggest staticLocalEnum;
	if(staticLocalEnum == SimpleEnumClassSuggest::NORMAL) { }
}
sitnduck Posted - May 08 2023 : 10:22:37 AM
Actually, it seems to work in other cases, not in this static value definition. Perhaps just this small case!

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000