David Walthall | 28 Aug 18:36

[iostreams][trunk] patch for msvc 7.1 error

The following patch fixes the mapped_file_test compilation error for 
msvc 7.1 (daw-msvc71):

Index: libs/iostreams/src/mapped_file.cpp
===================================================================
--- libs/iostreams/src/mapped_file.cpp  (revision 48407)
+++ libs/iostreams/src/mapped_file.cpp  (working copy)
@@ -434,7 +434,7 @@

  void mapped_file_source::close() { pimpl_->close(); }

-mapped_file_source::operator safe_bool() const
+mapped_file_source::operator mapped_file_source::safe_bool() const
  { return pimpl_->error() ? &safe_bool_helper::x : 0; }

  bool mapped_file_source::operator!() const

David

PS Is this the right place to post patches?  Should I use Trac instead?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

eg | 31 Aug 08:38

Re: [iostreams][trunk] patch for msvc 7.1 error

David Walthall wrote:
> The following patch fixes the mapped_file_test compilation error for 
> msvc 7.1 (daw-msvc71):
> 
> Index: libs/iostreams/src/mapped_file.cpp
> ===================================================================
> --- libs/iostreams/src/mapped_file.cpp  (revision 48407)
> +++ libs/iostreams/src/mapped_file.cpp  (working copy)
> @@ -434,7 +434,7 @@
> 
>  void mapped_file_source::close() { pimpl_->close(); }
> 
> -mapped_file_source::operator safe_bool() const
> +mapped_file_source::operator mapped_file_source::safe_bool() const
>  { return pimpl_->error() ? &safe_bool_helper::x : 0; }
> 
>  bool mapped_file_source::operator!() const
> 
> 
I am not the expert on this, but I think creating a Trac entry for the 
bug and posting it there is better.
Things can get "forgotten" on mailing lists.
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

David Walthall | 2 Sep 18:42

Re: [iostreams][trunk] patch for msvc 7.1 error

David Walthall wrote:
> The following patch fixes the mapped_file_test compilation error for 
> msvc 7.1 (daw-msvc71):
> 
> Index: libs/iostreams/src/mapped_file.cpp
> ===================================================================
> --- libs/iostreams/src/mapped_file.cpp  (revision 48407)
> +++ libs/iostreams/src/mapped_file.cpp  (working copy)
> @@ -434,7 +434,7 @@
> 
>  void mapped_file_source::close() { pimpl_->close(); }
> 
> -mapped_file_source::operator safe_bool() const
> +mapped_file_source::operator mapped_file_source::safe_bool() const
>  { return pimpl_->error() ? &safe_bool_helper::x : 0; }
> 
>  bool mapped_file_source::operator!() const
> 
> 
> David
> 
> PS Is this the right place to post patches?  Should I use Trac instead?
> 

I've created a Trac ticket so this won't get lost:
http://svn.boost.org/trac/boost/ticket/2278

David

_______________________________________________
(Continue reading)


Gmane