|
Boost : |
From: Jurko Gospodnetiæ (jurko.gospodnetic_at_[hidden])
Date: 2008-06-05 08:30:33
Hi.
I'm attaching a patch for libs/iostreams/src/mapped_file.cpp which
corrects the mapped_file_source::operator!() operator.
It seems to have been erroneously returning true in case the
implementation object exists but has its error_ flag set.
Hope this helps.
Best regards,
Jurko Gospodnetiæ
Index: libs/iostreams/src/mapped_file.cpp
===================================================================
--- libs/iostreams/src/mapped_file.cpp (revision 46155)
+++ libs/iostreams/src/mapped_file.cpp (working copy)
@@ -150,7 +150,7 @@
}
bool mapped_file_source::operator!() const
-{ return !!pimpl_ || pimpl_->error_; }
+{ return !pimpl_ || pimpl_->error_; }
BOOST_IOS::openmode mapped_file_source::mode() const { return pimpl_->mode_; }
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk