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
 "Add include" for standard c++ library
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

__Daniel__
Senior Member

Poland
36 Posts

Posted - Dec 14 2009 :  03:19:21 AM  Show Profile  Reply with Quote
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?

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Dec 14 2009 :  1:55:55 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

__Daniel__
Senior Member

Poland
36 Posts

Posted - Dec 15 2009 :  01:57:42 AM  Show Profile  Reply with Quote
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*>.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Dec 15 2009 :  8:53:15 PM  Show Profile  Reply with Quote
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

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