From 7a393426b1c1a7af1df36e8e88b87a49f21ca9d8 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 15 Dec 2007 23:35:25 +0000 Subject: [PATCH] made client test not use a deprecated function. fixes #229 --- examples/client_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 12bc095d7..cf9f08ff0 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -425,15 +425,15 @@ void add_torrent(libtorrent::session& ses std::ifstream in(torrent.c_str(), std::ios_base::binary); in.unsetf(std::ios_base::skipws); entry e = bdecode(std::istream_iterator(in), std::istream_iterator()); - torrent_info t(e); + boost::intrusive_ptr t(new torrent_info(e)); - std::cout << t.name() << "\n"; + std::cout << t->name() << "\n"; entry resume_data; try { std::stringstream s; - s << t.name() << ".fastresume"; + s << t->name() << ".fastresume"; boost::filesystem::ifstream resume_file(save_path / s.str(), std::ios_base::binary); resume_file.unsetf(std::ios_base::skipws); resume_data = bdecode(