This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
two typedef for ofstream
- To: STDC++ <libstdc++ at sources dot redhat dot com>
- Subject: two typedef for ofstream
- From: Levente Farkas <lfarkas at mindmaker dot hu>
- Date: Mon, 14 Aug 2000 11:45:03 +0200
- Organization: Mindmaker Ltd.
- Reply-To: lfarkas at mindmaker dot hu
hi,
for ifstream there is one typedef in bits/std_iosfwd.h
--------------------------
[lfarkas@garfield:/home/cvs/gcc/libstdc++-v3]grep -r ifstream *|grep typedef
bits/std_iosfwd.h: typedef basic_ifstream<char> ifstream;
bits/std_iosfwd.h: typedef basic_ifstream<wchar_t> wifstream;
docs/17_intro/CHECKLIST:X typedef basic_ifstream<char> ifstream;
docs/17_intro/CHECKLIST:X typedef basic_ifstream<wchar_t> wifstream;
docs/17_intro/CHECKLIST:T typedef basic_ifstream<char> ifstream;
docs/17_intro/CHECKLIST:T typedef basic_ifstream<wchar_t> wifstream;
--------------------------
but for ofstream there are two:
--------------------------
[lfarkas@garfield:/home/cvs/gcc/libstdc++-v3]grep -r ofstream *|grep typedef
bits/std_fstream.h: typedef basic_ofstream<char> ofstream;
bits/std_fstream.h: typedef basic_ofstream<wchar_t> wofstream;
bits/std_iosfwd.h: typedef basic_ofstream<char> ofstream;
bits/std_iosfwd.h: typedef basic_ofstream<wchar_t> wofstream;
docs/17_intro/CHECKLIST:X typedef basic_ofstream<char> ofstream;
docs/17_intro/CHECKLIST:X typedef basic_ofstream<wchar_t> wofstream;
docs/17_intro/CHECKLIST:T typedef basic_ofstream<char> ofstream;
docs/17_intro/CHECKLIST:T typedef basic_ofstream<wchar_t> wofstream;
--------------------------
and it's an obvoius bug, since g++ give the following error:
using directive `ofstream' introduced ambiguous type `ofstream'
why it's not turn out yet???
IMHO it'd have to delete from bits/std_fstream.h.
yours.
-- Levente
"The only thing worse than not knowing the truth is
ruining the bliss of ignorance."