|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53428 - trunk/libs/iostreams/src
From: ghost_at_[hidden]
Date: 2009-05-30 02:26:54
Author: vladimir_prus
Date: 2009-05-30 02:26:54 EDT (Sat, 30 May 2009)
New Revision: 53428
URL: http://svn.boost.org/trac/boost/changeset/53428
Log:
Workaround msvc compiler error on mapped_file.cpp
Fixes #2278. Patch from David Walthall.
Text files modified:
trunk/libs/iostreams/src/mapped_file.cpp | 3 ++-
1 files changed, 2 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 2009-05-30 02:26:54 EDT (Sat, 30 May 2009)
@@ -434,7 +434,8 @@
void mapped_file_source::close() { pimpl_->close(); }
-mapped_file_source::operator safe_bool() const
+// safe_bool is explicitly qualified below to please msvc 7.1
+mapped_file_source::operator mapped_file_source::safe_bool() const
{ return pimpl_->error() ? &safe_bool_helper::x : 0; }
bool mapped_file_source::operator!() const
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