Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-08-18 14:09:56


Lisa Glendenning wrote:
> Hello,
> I just recently began using the boost iostreams library, and I can't
> figure out a way to see if a file has been successfully opened.
> E.g., I would like to reproduce this behavior:
>
> std::ofstream file("filename");
> if(!file) {
> // error opening file
> }

This is an oversight. Someone pointed this out before the release (he may even
have sent a patch) but it was after the feature freeze.

I'll post a patch in a few days. If you like, I'll send you an email when it's
available.

> Thanks,
> Lisa Glendenning

Jonathan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net