fstream and ofstream typedefs
Claudio Bley
bley@cs.uni-magdeburg.de
Sun Oct 26 22:14:00 GMT 2003
On Sun, Oct 26, 2003 at 03:45:00AM +1100, Tyler Retzlaff wrote:
> My latest copy of the standard is out of date, but shouldn't there be
> something similar to typedef basic_ofstream<char> ofstream; live in
> fstream?
I think it is not required to be defined right in there but rather
that when you #include <fstream> that it is required to be pulled in
and to be defined after the #include line.
When you include fstream, fstream includes istream, which in turn
includes iosfwd, where you'd find:
typedef basic_ofstream<char> ofstream; ///< @isiosfwd
HTH
--
Claudio Bley ASCII ribbon campaign (")
Debian GNU/Linux user - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \
More information about the Gcc-help
mailing list