By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

Other headers #included via <iostream>

P: n/a
Hi,

As most of you probably already know, depending on which
implementation of C++ you have, #include <iostream> may cause various
other headers to be #included too. (I've observed cstring, cstdio,
cmath and I think cstdlib in g++)

Are there any that the standard requires to be "dragged in" like this
regardless of implementation?

Thanks,

James M.
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ze*******************************@yahoo.com wrote:
As most of you probably already know, depending on which
implementation of C++ you have, #include <iostream> may cause various
other headers to be #included too. (I've observed cstring, cstdio,
cmath and I think cstdlib in g++)

Are there any that the standard requires to be "dragged in" like this
regardless of implementation?


No. You need to include the headers that declare/define what you intend
on using. The Standard only requires that multiple inclusion of the same
header does no harm.

V
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.