This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

two typedef for ofstream


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."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]