(2.9.8pre1) ios::nocreate?
George T. Talbot
george@moberg.com
Sat Apr 1 00:00:00 GMT 2000
I've been trying to convert my program to use the new libstdc++. I used
ios::nocreate in the program, but it doesn't appear to be in the new library.
ifstream datastream(m_szPathAndFile.c_str(), ios::in | ios::nocreate);
if (!datastream.is_open())
THROW(CTreeCreationException(m_szPathAndFile + ": file not opened"));
Is this still in the standard?
I notice that the behaviour is what I want if I leave out ios::in |
ios::nocreate, so this isn't a problem.
One other thing, no constructors for ifstream and ofstream that take a string
instead of const char *, eh? Is that not in the standard?
--
George T. Talbot
<george@moberg.com>
More information about the Libstdc++
mailing list