[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | C++ |
Notice: | Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS) |
Moderator: | DECCXX::AMARTIN |
|
Created: | Fri Nov 06 1987 |
Last Modified: | Thu Jun 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3604 |
Total number of notes: | 18242 |
3490.0. "Why stream.h does not include fstream.h" by TKTV30::HASEGAWA () Thu Mar 13 1997 02:06
Our customer have a question about "stream.h and fstream.h".
On the former C++ version(V5.1), stream.h include "fstream.h",
but on the late version(V5.3) stream.h does not include "fstream.h".
They would like to know the reason why the change was done. C++ releasenotes
does not seem to describe the issue.
Does anyone know about this ?
Thanks in advance.
/Hase
//
On CXX V5.3
% cat test.cxx
#include <stream.h>
main() {
fstream file;
file.open("test",ios::in);
file.close(); }
% cxx test.cxx
cxx: Error: test.cxx, line 5: Missing ";".
fstream file;
- ----------------^
cxx: Error: test.cxx, line 6: In this statement, "file" is not declared.
file.open("test",ios::in);
- --------^
cxx: Error: test.cxx, line 7: In this statement, "file" is not declared.
file.close();
- --------^
% cat test1.cxx
#include <fstream.h>
main() {
fstream file;
file.open("test",ios::in);
file.close(); }
% cxx test1.cxx
T.R | Title | User | Personal Name | Date | Lines |
---|
3490.1 | before our time - but looks like it was wrong | HNDYMN::MCCARTHY | A Quinn Martin Production | Thu Mar 13 1997 05:59 | 11 |
| >>Does anyone know about this ?
It appears it was done by a prior engineer on the project. The CMS history
for stream.h only shows it including <stream.hxx> and no mention of
fstream.h.
The current documentation on fstream lists fstream.h[xx] as the file to include
so I can only think that the reason it was removed is because it was
there in error to begin with.
Brian J.
|