Did you know that including <iostream> causes you to include a total of 38 header files :)
<iostream.h> on the other hand includes only 4 other headers...
And I checked, you don't need to use namespace std for <csomething> includes (the C headers).
Printable View
Did you know that including <iostream> causes you to include a total of 38 header files :)
<iostream.h> on the other hand includes only 4 other headers...
And I checked, you don't need to use namespace std for <csomething> includes (the C headers).
Where did you hear this?
I browsed the headers...
Goodness. That's some real bloat, just to use some standad headers =).
Z.
Fair enough on the first one, but on most decent systems you'd use dynamic linking for things like that anyway (a DLL or DSO) :p.Quote:
Originally posted by CornedBee
Did you know that including <iostream> causes you to include a total of 38 header files :)
<iostream.h> on the other hand includes only 4 other headers...
And I checked, you don't need to use namespace std for <csomething> includes (the C headers).
For the second one...how come my headers have a namespace std { } wrapped round the include then? :confused:
Anyway, it's a moot point for the first since iostream.h is deprecated...
I don't care how many headers I have, they don't matter really for code size, the only thing that matters is the code that is included then. But DLLs solve this.
Well, here is my cstdio:
Nothing important removed. I wonder what the _STD_USING is, but it does not create the namespace.PHP Code:#ifndef _CSTDIO_
#define _CSTDIO_
#ifdef _STD_USING
#undef _STD_USING
#include <stdio.h>
#define _STD_USING
#else
#include <stdio.h>
#endif /* _STD_USING */
#endif /* _CSTDIO_ */