Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create from usage may not deduce return type

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
nodet Posted - Dec 13 2010 : 06:16:24 AM
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...
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 15 2010 : 7:29:40 PM
I am seeing the same effect here. Thank you for the clear description.

case=53351

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