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
 Wrong suggestion in C++ with Visual Studio 2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Memleak
Starting Member

1 Posts

Posted - Nov 20 2013 :  02:17:34 AM  Show Profile  Reply with Quote
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.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 21 2013 :  8:54:46 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

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