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
 The word "value" wants to be class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zeroes00
Junior Member

17 Posts

Posted - Apr 06 2012 :  11:39:56 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Apr 06 2012 :  12:48:18 PM  Show Profile  Reply with Quote
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.

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

zeroes00
Junior Member

17 Posts

Posted - Apr 06 2012 :  2:41:08 PM  Show Profile  Reply with Quote
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))
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Apr 10 2012 :  9:19:04 PM  Show Profile  Reply with Quote
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.

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 - Feb 26 2014 :  10:40:11 AM  Show Profile  Reply with Quote
case=37888 is fixed in build 2029
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