From c22d5bab8fc39f395c8f4e951645babfa1c529d4 Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Mon, 31 Jan 2005 23:48:42 +0000 Subject: [PATCH] borland 5.x fixes [SVN r26977] --- src/mapped_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapped_file.cpp b/src/mapped_file.cpp index c1318f7..60ab02f 100755 --- a/src/mapped_file.cpp +++ b/src/mapped_file.cpp @@ -96,13 +96,13 @@ mapped_file_source::size_type mapped_file_source::size() const { return pimpl_->size_; } bool mapped_file_source::is_open() const -{ return pimpl_ && pimpl_->handle_ != 0; } +{ return !!pimpl_ && pimpl_->handle_ != 0; } void mapped_file_source::close() { pimpl_->close(); } mapped_file_source::operator mapped_file_source::safe_bool() const { - return pimpl_ && pimpl_->error_ == false ? + return !!pimpl_ && pimpl_->error_ == false ? &safe_bool_helper::x : 0; }