Re: [Boost-bugs] [Boost C++ Libraries] #786: bug in iostreams/copy.hpp line 81

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #786: bug in iostreams/copy.hpp line 81
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-07 03:47:16

#786: bug in iostreams/copy.hpp line 81
  Reporter: nobody | Owner: turkanis
      Type: Bugs | Status: assigned
 Milestone: | Component: None
   Version: None | Severity:
Resolution: None | Keywords:
Comment (by qbowater_at_[hidden]):

 Replying to [comment:1 alexis_wilke]:
> Mathieu,
> Actually, the copy operator will test if(_first < _last) <do the copy>
 and if amt is -1 that condition will be false. Yet I agree that your way
 we would avoid one call and one variable ('done' in the original loop).
 I'm not part of boost so I cannot decide whether to apply the change. But
 this is only an optimization.
> Alexis

 In VC8 DEBUG mode,it will assert in std::copy because "first > last". It
 make difficult to debug program.I think it should be repaired necessarily.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC