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
 1724: spurious parentheses appended to std::endl
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SamHocevar
Junior Member

France
15 Posts

Posted - Jun 25 2009 :  06:32:33 AM  Show Profile  Reply with Quote
When autocompleting "std::e", for instance when writing
std::cout << "Hello world" << std::endl;
Visual Assist X insists on writing "std::endl()", appending parentheses that need to be manually removed. This is frustrating because it interrupts the typing flow. VAX should go the least astonishment path for such common C++ uses.

When VAX is disabled, the standard Visual Studio 2008 autocompletion method completes "std::e" to "std::endl" (with no parentheses), as I would expect.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 25 2009 :  4:55:37 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=23289

For now, you can paste these lines into Visual Assist's stdafx.h:

#define endl
#define ends
#define flash

as a workaround. You can learn more about Visual Assist's stdafx.h here:
http://docs.wholetomato.com?W302

Edited by - accord on Jun 25 2009 5:01:57 PM
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