Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 The word "value" wants to be class

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
zeroes00 Posted - Apr 06 2012 : 11:39:56 AM
The word "value" gets often (usually) colored as a class, like for example if I use value as a function name:
int value();

...or if I use value as a variable name:
int value = 123;

I'm using C++ and I can't find a class named "value" being included in any of the headers.
4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 26 2014 : 10:40:11 AM
case=37888 is fixed in build 2029
feline Posted - Apr 10 2012 : 9:19:04 PM
Thank you for trying this, I am seeing similar effects here. It turns out this is a known issue:

case=37888

which is related to VA's managed C++ support.
zeroes00 Posted - Apr 06 2012 : 2:41:08 PM
When I press Alt + G with caret on // value, the caret jumps to a boost file:
C:\\Boost\\include\\boost-1_49\\boost\\type_traits\\is_complex.hpp

... on the word "value" on a line 28 which reads:
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_complex,T,(::boost::is_convertible<T, boost::detail::is_convertible_from_tester>::value))
feline Posted - Apr 06 2012 : 12:48:18 PM
Can you please add the line:

// value

to one of your cpp files, and then place the caret in "value" and press Alt-g. What results are you given? Since this is a comment, VA should list all definitions if value that it knows, and one or more of these is likely to look like a class or other type.

Doing this here, I am getting a couple of results from the Boost library that may well explain this colouring.

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