Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-06-24 02:25:27


Author: jurko
Date: 2008-06-24 02:25:27 EDT (Tue, 24 Jun 2008)
New Revision: 46637
URL: http://svn.boost.org/trac/boost/changeset/46637

Log:
Corrected a bug in the iostream library's mapped_file_source::operator!() member function.
Text files modified:
   trunk/libs/iostreams/src/mapped_file.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/iostreams/src/mapped_file.cpp
==============================================================================
--- trunk/libs/iostreams/src/mapped_file.cpp (original)
+++ trunk/libs/iostreams/src/mapped_file.cpp 2008-06-24 02:25:27 EDT (Tue, 24 Jun 2008)
@@ -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-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk