Modify

Opened 5 years ago

Last modified 5 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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by viboes

Component: Noneiostreams
Owner: set to Jonathan Turkanis

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Jonathan Turkanis.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.