Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-12-06 14:47:36

Bugs item #1610369, was opened at 2006-12-06 11:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in iostreams/copy.hpp line 81

Initial Comment:
in boost 1_33_1 iostreams library

file copy.hpp

line 91 and following...

it should rather be :

streamsize amt;
while ((amt=iostreams::read(src,,buffer_size)) != -1)
   std::copy(, + amt, p.first + total);
   total += amt;
return total;

otherwise it happens that the std::copy line is called with amt =-1 which is a bug isnt it ?




You can respond by visiting:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at