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
 Auto-insertion of #include for STL containers?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

studoot
Senior Member

35 Posts

Posted - Feb 20 2009 :  09:23:43 AM  Show Profile  Reply with Quote
Doesn't seem to work, even though it does for other symbols (very well done - nice work!).

Steps to replicate:

Add a new C++ Source File to a C++ project. Type a line like

std::vector<int> a;


The refactor context-menu doesn't ever have the 'Add Include' member, whether I invoke it over std, vector, int, a or any of the symbols.

Adding text like this:

int fn()
{
   printf("test");
}


and invoking the refactor menu over 'printf' does show 'Add Include'.

It doesn't make any difference if I put the declaration of a in fn - I still don't get the Add Include option.

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Feb 20 2009 :  12:21:53 PM  Show Profile  Reply with Quote
I am seeing the same effect here for std::vector, thank you for the clear description.

case=23430

Hopefully this will be fixed in the next build of VA.

zen is the art of being at one with the two'ness
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