$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: technews_at_[hidden]
Date: 2008-01-08 15:25:45
Author: turkanis
Date: 2008-01-08 15:25:45 EST (Tue, 08 Jan 2008)
New Revision: 42621
URL: http://svn.boost.org/trac/boost/changeset/42621
Log:
fixed reinterpret_cast from int to int error on POSIX
Text files modified: 
   branches/iostreams_dev/boost/iostreams/device/file_descriptor.hpp |     9 ++++++++-                               
   1 files changed, 8 insertions(+), 1 deletions(-)
Modified: branches/iostreams_dev/boost/iostreams/device/file_descriptor.hpp
==============================================================================
--- branches/iostreams_dev/boost/iostreams/device/file_descriptor.hpp	(original)
+++ branches/iostreams_dev/boost/iostreams/device/file_descriptor.hpp	2008-01-08 15:25:45 EST (Tue, 08 Jan 2008)
@@ -64,7 +64,14 @@
     handle_type handle() const { return pimpl_->handle_; }
 private:
     struct impl {
-        impl() : handle_(reinterpret_cast<handle_type>(-1)), flags_(0) { }
+        impl() : 
+            #ifdef BOOST_IOSTREAMS_WINDOWS
+                handle_(reinterpret_cast<handle_type>(-1)), 
+            #else
+                handle_(-1),
+            #endif
+                flags_(0) 
+            { }
         impl(handle_type fd, bool close_on_exit)
             : handle_(fd), flags_(0)
         { if (close_on_exit) flags_ |= impl::close_on_exit; }