Differences in iostream Implementation

The main difference between the Standard C++ library and previous run-time libraries is in the iostream library. Details of the iostream implementation have changed, and it may be necessary to rewrite parts of your code that use iostream if you want to link with the Standard C++ library.

You will have to remove any old iostream headers (fstream.h, iomanip.h, ios.h, iostream.h, istream.h, ostream.h, streamb.h, and strstrea.h) you have included in your code and add one or more of the new Standard C++ iostream headers (fstream, iomanip, ios, iosfwd, iostream, istream, ostream, sstream, streambuf, and strstream, all without the .h extension).

If your old application is very iostream intensive, you may choose not to link with the new Standard C++ library. In this case, leave the old iostream headers in your code and the old iostream library will automatically be linked. However, you cannot include any of the new Standard C++ library headers. You cannot mix calls to the old iostream library and the new Standard C++ library.

The following list describes behavior in the new Standard C++ iostream library that differs from behavior in the old iostream library.

In the new Standard C++ iostream library:

In addition to the above changes, the following functions, constants, and enumerators that are elements of the old iostream library are not elements of the new iostream library: