Questions tagged [iosfwd]

C++ Input-Output forward declarations header

This header provides forward declarations for the types of the standard input/output library.

Note that the file does not contain the template definitions, and thus shall only be included in other headers to provide forward declarations of these types.

reference and source at http://www.cplusplus.com/reference/iosfwd/

5 questions
80
votes
3 answers

What is the header?

What's the header used for? Why is it necessary? Any example?
wp2
  • 1,151
  • 3
  • 9
  • 10
3
votes
1 answer

No such file when building Botan under Android Studio?

I was using Eclipse successfully to build Botan using the directions linked to from this question, however, Android Studio is supposed to replace Eclipse for Android development, so I'm trying to get it to build in Android Studio now, but it fails…
WilliamKF
  • 36,283
  • 61
  • 170
  • 271
2
votes
1 answer

Why can a "hello world" c++ program raise so many "iosfwd" errors in visual studio 2015?

I just typed this "hello world" c++ program in visual studio 2015 : #include int main() { using namespace std; cout << "Hello World!" << endl; return 0; } and then, vs told me : Error C2061 syntax error: identifier…
Passby
  • 21
  • 2
1
vote
1 answer

How to guarantee that iostream wasn't included?

It is considered best practice to #include in header files and #include only in cpp files. I'm trying to move a lot of #include from header to cpp files in an existing project. Is there a way to guarantee that no file…
Dev Null
  • 4,046
  • 1
  • 19
  • 40
0
votes
2 answers

C++ Undeclared Identifier for ios_base Class

I have the following header file. This compiled fine in VS2010 and VS2013, but now fails in VS2015 #ifndef UTILITY_IOS_STATE_H #define UTILITY_IOS_STATE_H #include template struct SetPrecision { SetPrecision(int…
MoonKnight
  • 23,430
  • 34
  • 134
  • 249