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

> Thanks,
> Lisa Glendenning


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at