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. |