Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57710 - trunk/boost/iostreams/detail/streambuf
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-16 15:31:18


Author: hkaiser
Date: 2009-11-16 15:31:18 EST (Mon, 16 Nov 2009)
New Revision: 57710
URL: http://svn.boost.org/trac/boost/changeset/57710

Log:
IOStreams: fixing compilation error on VC2010
Text files modified:
   trunk/boost/iostreams/detail/streambuf/indirect_streambuf.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/iostreams/detail/streambuf/indirect_streambuf.hpp
==============================================================================
--- trunk/boost/iostreams/detail/streambuf/indirect_streambuf.hpp (original)
+++ trunk/boost/iostreams/detail/streambuf/indirect_streambuf.hpp 2009-11-16 15:31:18 EST (Mon, 16 Nov 2009)
@@ -168,7 +168,7 @@
 
     // Construct input buffer.
     if (can_read()) {
- pback_size_ = (std::max)(2, pback_size); // STLPort needs 2.
+ pback_size_ = (std::max)(std::streamsize(2), pback_size); // STLPort needs 2.
         std::streamsize size =
             pback_size_ +
             ( buffer_size ? buffer_size: 1 );


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