Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Insertion of ambiguous #includes

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
studoot Posted - Mar 09 2009 : 2:35:18 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 10 2009 : 4:51:05 PM
This is a very good point, I have put in a feature request for this:

case=24899

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