470,833 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

write before BOF

Is there any runtime diagnostic required by C++ standard in
std::ofstream ofs("foo.bar");
ofs << "Gosh";

or is the result implementation defined as with writng past eof?

Jun 27 '08 #1
1 1807

Gorc schrieb:
std::ofstream ofs("foo.bar");
I expect this to set the failbit.

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Brett Baisley | last post: by
8 posts views Thread by Ben | last post: by
11 posts views Thread by Vmusic | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.