Opened 15 years ago

Closed 15 years ago

#1185 closed Bugs (fixed)

iostreams::direct_streambuf<T,Tr>::is_open always returns false if output iterator is not null

Reported by: ysb33r@… Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

In iostreams/detail/streambuf/direct_streambuf.hpp, the code

bool direct_streambuf<T, Tr>::is_open() { return ibeg_ != 0 && !obeg_ != 0; }

has a misplaced !obeg_. It should read

{ return ibeg_ != 0 && obeg_ != 0; }

Change History (6)

comment:1 by Marshall Clow, 15 years ago

Component: Noneiostreams
Owner: set to Douglas Gregor

comment:2 by Marshall Clow, 15 years ago

Owner: Douglas Gregor removed

comment:3 by Marshall Clow, 15 years ago

Owner: set to Douglas Gregor

comment:4 by Jonathan Turkanis, 15 years ago

Owner: changed from Douglas Gregor to Jonathan Turkanis
Status: newassigned

comment:5 by Jonathan Turkanis, 15 years ago

Status: assignednew

comment:6 by Jonathan Turkanis, 15 years ago

Resolution: fixed
Status: newclosed

Fixed some time back. Not sure of the revision.

Note: See TracTickets for help on using tickets.