replace_extension is only available in boost 1.37+

This commit is contained in:
Arvid Norberg 2009-08-17 20:26:41 +00:00
parent a75052c193
commit 507fc50911
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,7 @@ namespace libtorrent
file_entry e;
if (!extract_single_file(*list.list_at(i), e, root_dir))
return false;
#if BOOST_VERSON > 103600
int cnt = 0;
for (file_storage::iterator k = target.begin()
, end(target.end()); k != end; ++k)
@ -306,6 +307,7 @@ namespace libtorrent
// doesn't already exist as well, otherwise we might
// just create another collision
}
#endif
target.add_file(e);
}
return true;