Jorgen Grahn <
grahn...@snipabacken.se> wrote:
> - It's hard to remember to include the exact right set of headers --
I really wish they made inclusion of standard library headers
optional. In other words, the the compiler would "include" such
headers automatically when it sees that a standard function, type
or macro is referenced in the code.
(If this could potentially be a source of problems, then I would
be completely ready to accept that the automatic inclusion of
standard header files is done only when you use the std:: prefix
in the name of the function or type. This ought to be easy for
the compiler to do.)
Code would become cleaner, less prone to errors due to forgotten
#include lines, and might even compile a bit faster (because the
compiler doesn't need to parse #include lines nor, possibly, the
header files themselves).
--- news://
freenews.netfront.net/ - complaints:
ne...@netfront.net ---