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
 1554: Create Implementation fails for overloads
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swinefeaster
Tomato Guru

310 Posts

Posted - May 11 2007 :  1:28:22 PM  Show Profile  Reply with Quote
Cannot use CreateImplementation for functions such as:


    operator DWORD(void)const;
    bool operator<(const ModelUniqueID& o) const;
    bool operator==(const ModelUniqueID& o) const;
    bool operator!=(const ModelUniqueID& o) const;
    ModelUniqueID& operator=(const ObjectId& o);

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 11 2007 :  3:33:11 PM  Show Profile  Reply with Quote
This is unfortunately by design in 1555. We ran into some bugs with refactoring and overloaded operator functions, and until we have resolved the problems (generating bad code) we have disabled most refactoring on these functions.

We are aiming to get at least some of this sorted out soon.

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

swinefeaster
Tomato Guru

310 Posts

Posted - May 14 2007 :  6:05:09 PM  Show Profile  Reply with Quote
ok sounds good! thanks
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jun 08 2007 :  1:07:02 PM  Show Profile  Reply with Quote
this works now, but it is very sensitive as to where you put the cursor in the func declaration. can we make it work regardless of where you put the cursor on that statement?

thanks
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 08 2007 :  1:19:04 PM  Show Profile  Reply with Quote
The rule should be the same as for normal functions, place the caret inside the function name. For operator overloaded inside the word "operator" normally works well for me.

Are you having problems with any particular overloaded operator?

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

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 11 2007 :  07:45:51 AM  Show Profile  Reply with Quote
I have just tested the 5 operators you posted here, and placing the caret into the keyword "operator" gets VA to offer and run Create Implementation on all of them. I am using VS2005 and VA 1557.

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