write before BOF

G

Gorc

Is there any runtime diagnostic required by C++ standard in


std::eek:fstream ofs("foo.bar");
ofs.seekp(-1,ios::beg);
ofs << "Gosh";

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

gorc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top