Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Add include" for standard c++ library

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
__Daniel__ Posted - Dec 14 2009 : 03:19:21 AM
Hello.
E.g. on assert -> "Add include"
file <assert.h> is added
why not <cassert>?
Is it possible to force use include for standard c++ library?
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 15 2009 : 8:53:15 PM
The fact that assert was only an example is what is bothering me. We would need to add some form of mapping table that Add Include had to run through first. I am just concerned about possible edge cases here, and the maintenance of this table.

Still it is worth asking our developers about, to see what they make of this:

case=37006
__Daniel__ Posted - Dec 15 2009 : 01:57:42 AM
Assert is only example.
http://www.cplusplus.com/reference/clibrary/
"Nevertheless, for compatibility with C, the traditional header names name.h (like stdlib.h) are also provided with the same definitions within the global namespace. In the examples provided in this reference, this version is used so that the examples are fully C-compatible, although its use is deprecated in C++."
In my group we always try use include <c*> - so, after use assistx i must "correct:)" it.
It's only question abou possibility force use <c*>.
feline Posted - Dec 14 2009 : 1:55:55 PM
Using using VS2005 and VA 1738 if I use alt-g on "assert" then VA offers me two different locations in the file "assert.h", which is why this header is being added.

On my system the file:

C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include\\cassert

only contains 2 #include lines, but no other code.

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