Opened 10 years ago

Last modified 10 years ago

#8437 new Bugs

/boost/iostreams/stream.hpp possibly wrong detail::stream_base superclass

Reported by: anonymous Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by viboes, 10 years ago

Component: Noneiostreams
Owner: set to Jonathan Turkanis
Note: See TracTickets for help on using tickets.