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
 Insertion of ambiguous #includes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

studoot
Senior Member

35 Posts

Posted - Mar 09 2009 :  2:35:18 PM  Show Profile  Reply with Quote
If I get Visual Assist's 'Add Include' refactoring action to add an include for std::wofstream, it inserts '#include <iosfwd>'. While this declares std::wofstream, std::wofstream is just a typedef and the underlying type (std::basic_ofstream in this case) remains undefined (it's just declared within iosfwd, not defined).

Maybe the 'Add Include' action could recognise that it's adding an include for a typedef and add a second include (if necessary) to ensure definition of the type that is being typedefed?

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Mar 10 2009 :  4:51:05 PM  Show Profile  Reply with Quote
This is a very good point, I have put in a feature request for this:

case=24899

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