added wpath overload for torrent_info constructor

This commit is contained in:
Arvid Norberg
2008-12-01 07:52:59 +00:00
parent a00ddba109
commit 58a3f6e4a0
3 changed files with 33 additions and 0 deletions

View File

@@ -1222,6 +1222,7 @@ The ``torrent_info`` has the following synopsis::
torrent_info(lazy_entry const& torrent_file);
torrent_info(char const* buffer, int size);
torrent_info(boost::filesystem::path const& filename);
torrent_info(boost::filesystem::wpath const& filename);
void add_tracker(std::string const& url, int tier = 0);
std::vector<announce_entry> const& trackers() const;
@@ -1280,6 +1281,7 @@ torrent_info()
torrent_info(lazy_entry const& torrent_file);
torrent_info(char const* buffer, int size);
torrent_info(boost::filesystem::path const& filename);
torrent_info(boost::filesystem::wpath const& filename);
The constructor that takes an info-hash will initialize the info-hash to the given value,
but leave all other fields empty. This is used internally when downloading torrents without