[Boost-bugs] [Boost C++ Libraries] #8437: /boost/iostreams/stream.hpp possibly wrong detail::stream_base superclass

Subject: [Boost-bugs] [Boost C++ Libraries] #8437: /boost/iostreams/stream.hpp possibly wrong detail::stream_base superclass
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-14 20:19:01


#8437: /boost/iostreams/stream.hpp possibly wrong detail::stream_base superclass
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.52.0
 Severity: Problem | Keywords:
-----------------------+----------------------------------------------------
 The file contains:

 typedef typename stream_traits<Device, Tr>::stream_type stream_type;
 ...
 stream_base() : pbase_type(), stream_type(&member) { }

 Thus stream_type *must* be a supertype of stream_base; however,
 the only supertypes are:

     : protected base_from_member< stream_buffer<Device, Tr, Alloc> >,
       public Base

 And the default value for template argument, Base, is:

           typename Base = // VC6 Workaround.
               BOOST_DEDUCED_TYPENAME
               detail::stream_traits<Device, Tr>::stream_type

 So I would guess type stream_type typedef should be removed
 and Base substituted for stream_type in the CTOR intialization list.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8437>
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:12 UTC