Topic: iostream thorwing constructors


Author: "yavor.vutov@gmail.com" <yavor.vutov@gmail.com>
Date: Thu, 13 Sep 2007 07:54:48 CST
Raw View
Why we don't have
something like:

std::ifstream f(filename, dothrow); // thorws if file filename cannot
be opened

or something with similar behaviour.

It would make my life much easier.

Yavor

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]