Re: fstream and ofstream typedefs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 / \


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux