
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 } Thanks, Lisa Glendenning

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
participants (2)
-
Jonathan Turkanis
-
Lisa Glendenning