[Boost-bugs] [Boost C++ Libraries] #3839: [iostreams]write.hpp:write_device_impl<ostream_tag> tries access non-member f

Subject: [Boost-bugs] [Boost C++ Libraries] #3839: [iostreams]write.hpp:write_device_impl<ostream_tag> tries access non-member f
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-14 04:33:25


#3839: [iostreams]write.hpp:write_device_impl<ostream_tag> tries access non-member
f
---------------------------------------+------------------------------------
 Reporter: cppljevans@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: None
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 In the boost/iostreams/write.hpp file, in template specialization:

   struct write_device_impl<ostream_tag>

 the line:

   return !traits_type::eq_int_type( t.rdbuf()->s.sputc(),

 should be changed to:

   return !traits_type::eq_int_type( t.rdbuf()->sputc(c),

 because a streambuf has no s member and the proposed changed
 reflects what's done elsewhere in the same file.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3839>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC