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
 Create from usage may not deduce return type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nodet
New Member

8 Posts

Posted - Dec 13 2010 :  06:16:24 AM  Show Profile  Reply with Quote
Consider the following code:

class A {};
void f(A* a) {
int i (a->getI());
int j = a->getJ();
}

When asked to create the method getI from usage, VA deduces the 'void getI()' prototype, which I don't think is correct: I would expect 'int getI()', as is the case when creating the getJ method.

Note that I'm still using 10.6.1830, but I can't update at this time...

Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 15 2010 :  7:29:40 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=53351
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