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
 VA doesn't recognize implicit conversion operators
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nholthaus
Junior Member

20 Posts

Posted - Jan 26 2018 :  1:28:36 PM  Show Profile  Reply with Quote
When opening the refactor menu on an implicit conversion operator in a class such as:

`operator int() const;`

There is no option to "create implementation" or "add similar member". It doesn't look like visual assist is recognizing the operators as member functions?

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 27 2018 :  10:35:11 AM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?

When you are testing this, where are you placing the caret? Which symbol are you using as the "function name"? For me, this works as expected when I place the caret into "operator" and trigger the refactoring context menu.

Since operator overloaded functions are a slightly special case, triggering on thee operator keyword is what we have settled on for a reliable approach.

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

nholthaus
Junior Member

20 Posts

Posted - Jan 29 2018 :  11:25:59 AM  Show Profile  Reply with Quote
Aha. I've been placing the caret over the `int()` portion like I would do for member function definitions. It works when I highlight operator.

Thanks!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 29 2018 :  12:24:50 PM  Show Profile  Reply with Quote
I wondered if this was the case. For "int()" it makes sense, but when you get onto other operators, especially brackets, then where do you place the caret?

zen is the art of being at one with the two'ness
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