You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just finished chapter 3 and I noticed my IDE has greyed out the header - #include - suggesting that it isn't necessary. The program appears to run fine with or without it.
I can't see anywhere std::string is used in the program. Is it being used somewhere I haven't noticed and my IDE thinks it is unnecessary because the header is implicit in - #include - or is this really not needed?
If std::string is used, is it considered good practice to make headers explicit, rather than implicit in C++?
The text was updated successfully, but these errors were encountered:
Hi,
I just finished chapter 3 and I noticed my IDE has greyed out the header - #include - suggesting that it isn't necessary. The program appears to run fine with or without it.
I can't see anywhere std::string is used in the program. Is it being used somewhere I haven't noticed and my IDE thinks it is unnecessary because the header is implicit in - #include - or is this really not needed?
If std::string is used, is it considered good practice to make headers explicit, rather than implicit in C++?
The text was updated successfully, but these errors were encountered: