no copyright!
![]() |
IOStream Issues when Migrating to the C++ StandardAbstractDuring standardization the interface of the IOStream classes was changed significantly. Thus, there are some issues which will cause problems when porting code using the older interface to a standard C++ platform. This document describes at least some of these migration issues.IntroductionIn the process of standardization, the interface to the IOStream classes was significantly changed. the most notable changes are
Although the introduction of templates was actually the biggest
change for IOStreams, it will affect most old code only slightly. The
most significant problem introduces by this change are forward
declaration of stream classes (see below). The other two changes are
not specific to the IOStream library but affect the whole C++ standard
library.
The problem with these declarations should normally show up during
compilation because there will be a conflict between the declaration
in the standard headers and the declaration in the user code.
However, since the new declarations are now in the namespace
The correct approach to resolve this problem is to include the new
header
See Also
|