Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Wrong suggestion in C++ with Visual Studio 2008

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
Memleak Posted - Nov 20 2013 : 02:17:34 AM
Hello,

Please consider the following code:


class Foo;

class SomeObject
{
public:
    SomeObject(Foo*){}
};


class Foo
{
public:

    void method()
    {
       SomeObject I_do_nothing(this); 
       
       //If I want to use I_do_nothing Visual Assist will suggest:
       // I_do_nothing() <= notice the extra parenthesis
    }
};


I would expect that, in "Foo::method" whenever I want to use "I_do_nothing" object visual assist would complete the word without adding those extra parenthesis. They are quite annoying as I have to delete both of them to be able to call something on the object. For some reason VAssist thinks that the object is actually a function. I see this as a bug.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Nov 21 2013 : 8:54:46 PM
I am seeing the same effect here. Thank you for the clear description.

case=60805

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