summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 18:39:26 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 18:39:26 +0000
commit04a70520139efcfb287e329ae97e51ddf77605c6 (patch)
treeba928b26286c746524b968b24d69e2a3e8adcf54 /src/BtFileAllocationEntry.cc
parent7fdbd0e10436484289b0e9ada72cbd9f6889dac6 (diff)
2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added std namespace to copy, remove_copy, back_inserter, front_inserter. * src/RequestGroupMan.cc * src/DefaultPieceStorage.cc * src/StreamFileAllocationEntry.cc * src/BtFileAllocationEntry.cc * src/RequestGroup.cc * src/MetalinkEntry.cc * src/DelegatingPeerListProcessor.cc * src/DefaultBtRequestFactory.cc * src/DefaultBtMessageDispatcher.cc * src/version_usage.cc: Included <algorithm> * src/main.cc * src/MetalinkParserController.cc * src/DefaultBtContext.cc * src/DownloadEngineFactory.cc * src/a2algo.h Removed. * test/StreamUriListParserTest.cc
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
-rw-r--r--src/BtFileAllocationEntry.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc
index c27ea4c1..19f70d8f 100644
--- a/src/BtFileAllocationEntry.cc
+++ b/src/BtFileAllocationEntry.cc
@@ -37,6 +37,7 @@
#include "RequestGroup.h"
#include "Command.h"
#include "DownloadEngine.h"
+#include <algorithm>
namespace aria2 {
@@ -50,7 +51,7 @@ Commands BtFileAllocationEntry::prepareForNextAction(DownloadEngine* e)
Commands commands = BtSetup().setup(_requestGroup, e, e->option);
if(!_requestGroup->downloadFinished()) {
Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, 0);
- copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands));
+ std::copy(streamCommands.begin(), streamCommands.end(), std::back_inserter(commands));
}
return commands;
}